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-56532684c37f
- https://ss64.com/locale.html
Currently locale.windows_locale[1107] == "kh_KH" incorrectly.
https://github.com/python/cpython/blob/3.12/Lib/locale.py#L1596
It 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.
If this issue is accepted I am happy to make a small PR to adjust this value.
CPython versions tested on:
3.11, 3.12, 3.13, CPython main branch
Operating systems tested on:
Windows
Linked PRs
- gh-123853: Corrected Cambodian language locale identifier #123855
- gh-123853: Update locale.windows_locale #123901
- gh-123853: Cleanup Windows 95 locale fallback support #144738
- [3.14] gh-123853: Update locale.windows_locale (GH-123901) #148876
- [3.13] gh-123853: Update locale.windows_locale (GH-123901) #148877