Skip to content

Update the locale alias mapping #129646

Closed
Closed

Description

@serhiy-storchaka

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

Activity

  1. added
    3.12only security fixes
    3.13only security fixes
    3.14bugs and security fixes
    stdlibStandard Library Python modules in the Lib/ directory
    on Feb 4, 2025
  2. added a commit that references this issue on Feb 4, 2025
  3. added a commit that references this issue on Feb 4, 2025
  4. added a commit that references this issue on Feb 4, 2025
  5. added a commit that references this issue on Feb 4, 2025
  6. serhiy-storchaka commented on Feb 4, 2025

    @serhiy-storchaka
    MemberAuthor

    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.

  7. malemburg commented on Feb 4, 2025

    @malemburg
    Member

    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.

  8. added a commit that references this issue on Feb 7, 2025
  9. added a commit that references this issue on Feb 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.13only security fixes3.14bugs and security fixesstdlibStandard Library Python modules in the Lib/ directory

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions