KEMBAR78
Needless abbreviation of day names in certain locale in calendar · Issue #137481 · python/cpython · GitHub
Skip to content

Needless abbreviation of day names in certain locale in calendar #137481

@snoyes

Description

@snoyes

In some languages (such as Malay), no weekday name is as long as 9 letters.

python -m calendar -L ms_my -e utf8 -w 9 2025 01 | head -2
                             Januari 2025
  Isnin     Selasa     Rabu     Khamis    Jumaat    Sabtu      Ahad

However, a text calendar will always abbreviate the day names if the width is set to less than 9:

python -m calendar -L ms_my -e utf8 -w 6 2025 01 | head -2
                  Januari 2025
 Isn    Sel    Rab    Kha    Jum    Sab    Ahd

https://github.com/python/cpython/blob/main/Lib/calendar.py#L373

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    stdlibStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or error

    Projects

    Status

    Done

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions