-
-
Notifications
You must be signed in to change notification settings - Fork 34.5k
Update the locale alias mapping #129646
Copy link
Copy link
Closed
Labels
3.13bugs and security fixesbugs and security fixes3.14bugs and security fixesbugs and security fixesstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directory
Metadata
Metadata
Assignees
Labels
3.13bugs and security fixesbugs and security fixes3.14bugs and security fixesbugs and security fixesstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directory
Projects
Status
Done
locale_aliasmapping in thelocalemodule is manually generated from thelocale.aliasesfile from X.org distribution and the supported locales list from glibc. As these files are changed, we need to updatelocale_aliasfrom 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.aliasesno longer contains such aliases, it only contains aliases "univ.utf8" and "universal.utf8@ucs4".Linked PRs