Skip to content

[R][C++] datetime locale support on Windows MINGW / R #31777

Closed as not planned
Closed as not planned

Description

@asfimport

In #12536 I found that locales other than "C" and "POSIX" didn't seem to be supported in the RTools environment (a MSYS2 fork). I saw some indications this might apply to any MINGW toolchain (https://stackoverflow.com/a/4497266/2048858), but nothing very recent or definitive.

Is there a way we can enable this support?

Reporter: Will Jones / @wjones127

Note: This issue was originally created as ARROW-16399. Please see the migration documentation for further details.

Activity

  1. asfimport commented on May 3, 2022

    @asfimport
    Author

    Dewey Dunnington / @paleolimbot:
    I know there's some of this in the PR, but what is the piece of R or C or C++ code that doesn't work that should?

  2. asfimport commented on May 3, 2022

    @asfimport
    Author

    Will Jones / @wjones127:
    Good question. IIRC, this will error in C++:

    std::locale("English_United States.1252")

    It looks like it may be possible get support for other locales, based on the documentation here:

    https://github.com/msys2/msys2-runtime/blob/c0250d576e39d603248d10e7bb2f396c9bc6a56c/newlib/libc/locale/locale.c#L29-L41

  3. github-actions commented on Mar 30, 2026

    @github-actions

    This issue has been marked as stale because it has had no activity in the past 365 days. Please remove the stale label or comment below, or this issue will be closed in 14 days. If this improvement is still desired but has no current owner, please add the 'Status: needs champion' label.

  4. added
    Status: stale-warning
    on Mar 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Component: C++Component: RStatus: stale-warningType: enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions