You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
locale_alias mapping in the locale module is manually generated from the locale.aliases file from X.org distribution and the supported locales list from glibc. As these files are changed, we need to update locale_alias from time to time. Last time it was updated in 3.8. There are not much changes since then, but they are.
Other issue is that "univ" and "universal" map to non-existing locale "en_US.utf" (should be "en_US.UTF-8"), as was noticed in #122877. locale.aliases no longer contains such aliases, it only contains aliases "univ.utf8" and "universal.utf8@ucs4".
I don't think it's worth it. Besides: Depending on you see this, adding new mappings and changing existing ones can be regarded as a new feature and not a bug fix.
Activity
pythongh-129646: Update the locale alias mapping
gh-129646: Update the locale alias mapping (#129647)
pythongh-129646: Update the locale alias mapping (pythonGH-129647)
[3.13] gh-129646: Update the locale alias mapping (GH-129647) (GH-129658
serhiy-storchaka commentedon Feb 4, 2025
I backported this to 3.13 which is still in early stage of its life, but I am not so sure about 3.12. Perhaps it is not worth a hassle.
malemburg commentedon Feb 4, 2025
I don't think it's worth it. Besides: Depending on you see this, adding new mappings and changing existing ones can be regarded as a new feature and not a bug fix.
pythongh-129646: Update the locale alias mapping (python#129647)
pythongh-129646: Update the locale alias mapping (python#129647)
serhiy-storchaka commentedon Jul 31, 2025
References to the latest sources: