Skip to content

gh-53203: Fix strptime() for %c, %x and %X formats on some locales#135971

Merged
serhiy-storchaka merged 1 commit intopython:mainfrom
serhiy-storchaka:strptime-calc-alt-digits
Jun 27, 2025
Merged

gh-53203: Fix strptime() for %c, %x and %X formats on some locales#135971
serhiy-storchaka merged 1 commit intopython:mainfrom
serhiy-storchaka:strptime-calc-alt-digits

Conversation

@serhiy-storchaka
Copy link
Member

@serhiy-storchaka serhiy-storchaka commented Jun 26, 2025

  • Add detection of decimal non-ASCII alt digits.
  • Add support of non-decimal alt digits on locale lzh_TW.
  • Accept only numbers in correct range if alt digits are known.
  • Fix bug in detecting the position of the week day name on locales byn_ER and wal_ET.
  • Fix support of single-digit hour on locales ar_SA and bg_BG.
  • Add support for %T, %R, %r, %C, %OC.
  • Prepare code to use nl_langinfo().

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants