]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-53203: Fix strptime() for %c, %x and %X formats on some locales (GH-135971...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 27 Jun 2025 08:12:58 +0000 (10:12 +0200)
committerGitHub <noreply@github.com>
Fri, 27 Jun 2025 08:12:58 +0000 (08:12 +0000)
commitea25f4a8ecc1fd32960ce4c3e8d27f85a1bf9477
treebc3b37f4eb222f7d8f4e2972f0502ef1fa6395f7
parentd105eae96eda83582ee16a14de2dd3f650253b9d
[3.13] gh-53203: Fix strptime() for %c, %x and %X formats on some locales (GH-135971) (GH-136020)

* 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().

(cherry picked from commit 07183ebce36462aaaea4d20e0502b20821dd2682)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
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]