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

    stdlibPython modules in the Lib dirtype-bugAn unexpected behavior, bug, or error

    Projects

    Status

    No status

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions