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".
Linked PRs
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