]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-53203: Fix strptime() for %c, %x and %X formats on some locales (#135971)
authorSerhiy Storchaka <storchaka@gmail.com>
Fri, 27 Jun 2025 07:50:59 +0000 (10:50 +0300)
committerGitHub <noreply@github.com>
Fri, 27 Jun 2025 07:50:59 +0000 (10:50 +0300)
commit07183ebce36462aaaea4d20e0502b20821dd2682
treec8b50242d03d95023a8ce7acb16e9f93f5b724d4
parent0c6c09b7377e10dcf80844c961b578fbdc6f5375
gh-53203: Fix strptime() for %c, %x and %X formats on some locales (#135971)

* 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().
Lib/_strptime.py
Lib/test/test_strptime.py
Misc/NEWS.d/next/Library/2025-06-26-11-52-40.gh-issue-53203.TMigBr.rst [new file with mode: 0644]