Title: Deprecation of locale.getdefaultlocale breaks POSIX compatibility on Windows platform · Issue #130796 · python/cpython · GitHub
Open Graph Title: Deprecation of locale.getdefaultlocale breaks POSIX compatibility on Windows platform · Issue #130796 · python/cpython
X Title: Deprecation of locale.getdefaultlocale breaks POSIX compatibility on Windows platform · Issue #130796 · python/cpython
Description: 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 some...
Open Graph Description: 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 Wind...
X Description: 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 Wind...
Opengraph URL: https://github.com/python/cpython/issues/130796
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Deprecation of locale.getdefaultlocale breaks POSIX compatibility on Windows platform","articleBody":"# Bug report\n\n### Bug description:\n\nFollow-up to #90817.\n\nIn summary, without `getdetfaultlocale`, tools that rely on POSIX locales cannot reliably get the same information from `getlocale` or `setlocale` on Windows.\n\nFor example, Linux will return something like 'en_AU'. But on Windows, `getlocale` will return something like 'English_Australia'.\n\n### CPython versions tested on:\n\n3.12, 3.13\n\n### Operating systems tested on:\n\nWindows, Linux\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-143069\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/Wedge009","@type":"Person","name":"Wedge009"},"datePublished":"2025-03-03T17:21:39.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":16},"url":"https://github.com/130796/cpython/issues/130796"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:961d9cb8-39df-d976-e23a-9404ca787f2f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 99A0:6F7C:137752F:19DEE37:696B77BB |
| html-safe-nonce | d585fe214f131c50790e3318572132ee2241d439c1263f0f1aa7b622ab205c5a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5OUEwOjZGN0M6MTM3NzUyRjoxOURFRTM3OjY5NkI3N0JCIiwidmlzaXRvcl9pZCI6IjIyMTk3NzE5MTM2MTUxNDQ4OTEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 01c19370fc8772ad12407fd8f05dba75e7e38a1f6ad459fd30081953948a4dc5 |
| hovercard-subject-tag | issue:2891846612 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/130796/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ef858c09d384e8c80c2b4419c97fc15f4899de92a1cf0d1e662a7f499d1f980c/python/cpython/issues/130796 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ef858c09d384e8c80c2b4419c97fc15f4899de92a1cf0d1e662a7f499d1f980c/python/cpython/issues/130796 |
| og:image:alt | 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 Wind... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Wedge009 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 82560a55c6b2054555076f46e683151ee28a19bc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width