Title: `locale.windows_locale`: Incorrect Windows locale for Cambodian · Issue #123853 · python/cpython · GitHub
Open Graph Title: `locale.windows_locale`: Incorrect Windows locale for Cambodian · Issue #123853 · python/cpython
X Title: `locale.windows_locale`: Incorrect Windows locale for Cambodian · Issue #123853 · python/cpython
Description: Bug report Bug description: According to the Windows spec, the locale identifier for Cambodian (0x0453/1107) should be "km-KH" Sources: https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-lcid/70feba9f-294e-491e-b6eb-5653268...
Open Graph Description: Bug report Bug description: According to the Windows spec, the locale identifier for Cambodian (0x0453/1107) should be "km-KH" Sources: https://learn.microsoft.com/en-us/openspecs/windows_protocols...
X Description: Bug report Bug description: According to the Windows spec, the locale identifier for Cambodian (0x0453/1107) should be "km-KH" Sources: https://learn.microsoft.com/en-us/openspecs/windows...
Opengraph URL: https://github.com/python/cpython/issues/123853
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`locale.windows_locale`: Incorrect Windows locale for Cambodian","articleBody":"# Bug report\r\n\r\n### Bug description:\r\n\r\nAccording to the Windows spec, the locale identifier for Cambodian (`0x0453/1107`) should be \"km-KH\"\r\n\r\nSources:\r\n- https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-lcid/70feba9f-294e-491e-b6eb-56532684c37f\r\n- https://ss64.com/locale.html \r\n\r\nCurrently `locale.windows_locale[1107] == \"kh_KH\"` incorrectly.\r\nhttps://github.com/python/cpython/blob/3.12/Lib/locale.py#L1596\r\n\r\nIt is possible this mistake is from an older version of the protocol, but using the MS reference, the current mapping in Windows has been the case since the earliest recorded spec from `8/8/2013`.\r\n\r\nIf this issue is accepted I am happy to make a small PR to adjust this value.\r\n\r\n### CPython versions tested on:\r\n\r\n3.11, 3.12, 3.13, CPython main branch\r\n\r\n### Operating systems tested on:\r\n\r\nWindows\r\n\r\n\u003c!-- gh-linked-prs --\u003e\r\n### Linked PRs\r\n* gh-123855\r\n* gh-123901\n* gh-144738\n* gh-148876\n* gh-148877\n\u003c!-- /gh-linked-prs --\u003e\r\n","author":{"url":"https://github.com/seanbudd","@type":"Person","name":"seanbudd"},"datePublished":"2024-09-09T02:44:46.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":27},"url":"https://github.com/123853/cpython/issues/123853"}
| 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:66e36a81-d18f-79e3-3da2-1644ef61f2ca |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E70E:6435C:7644C1D:A586F1A:6A500F4B |
| html-safe-nonce | a61e3f40e81b5cdcf26f11c8c8a68ae813ec2bcb43b4111c7ad9fe36d2614af6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNzBFOjY0MzVDOjc2NDRDMUQ6QTU4NkYxQTo2QTUwMEY0QiIsInZpc2l0b3JfaWQiOiI4ODgzMTQxODA1MTEyMDcyNDMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 4f3ba78a5511b17730a81e9caededdab3003d7a83b7e32895d934da8816fb1bc |
| hovercard-subject-tag | issue:2512775630 |
| 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/123853/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9c1a11f30e310416013d97dbb954d7f483a66fc6e683a9f9a48a0848831b4216/python/cpython/issues/123853 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9c1a11f30e310416013d97dbb954d7f483a66fc6e683a9f9a48a0848831b4216/python/cpython/issues/123853 |
| og:image:alt | Bug report Bug description: According to the Windows spec, the locale identifier for Cambodian (0x0453/1107) should be "km-KH" Sources: https://learn.microsoft.com/en-us/openspecs/windows_protocols... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | seanbudd |
| hostname | github.com |
| expected-hostname | github.com |
| None | fe4f38b24922a1ce81c1708c3793b47c185599b9144ab94f6ca846b00698058d |
| 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 | 42b6390c91978a16f9196c38c7a00e9bf21f37e7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width