Skip to content

Deprecation of locale.getdefaultlocale breaks POSIX compatibility on Windows platform #130796

Description

@Wedge009

Bug report

Bug description:

Follow-up to #90817.

In summary, without getdetfaultlocale, tools that rely on POSIX locales cannot reliably get the same information from getlocale or setlocale on Windows.

For example, Linux will return something like 'en_AU'. But on Windows, getlocale will return something like 'English_Australia'.

CPython versions tested on:

3.12, 3.13

Operating systems tested on:

Windows, Linux

Linked PRs

No activity

Activity on this issue will appear here.

Activity

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

    3.15pre-release feature fixes, bugs and security fixespendingThe issue will be closed if no feedback is providedrelease-blockerstdlibStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancement

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions