Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation

serhiy-storchaka
Copy link
Member

@serhiy-storchakaserhiy-storchaka commentedJun 26, 2025
edited
Loading

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

BoboTiG reacted with hooray emoji
* %c and %x formats on locales byn_ER, wal_ET and lzh_TW* %X format on locales ar_SA, bg_BG and lzh_TWPrepare code to use nl_langinfo().
@serhiy-storchaka
Copy link
MemberAuthor

@kulikjak, could you please test this PR on Solaris?

kulikjak reacted with eyes emoji

@kulikjak
Copy link
Contributor

Sure, I tested the change and the test passes. We do not have those three letter locales, but both 'ar_SA' and 'bg_BG' are green.

Thanks for the ping!

serhiy-storchaka reacted with hooray emoji

@serhiy-storchakaserhiy-storchaka merged commit07183eb intopython:mainJun 27, 2025
46 checks passed
@miss-islington-app
Copy link

Thanks@serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14.
🐍🍒⛏🤖 I'm not a witch! I'm not a witch!

@serhiy-storchakaserhiy-storchaka deleted the strptime-calc-alt-digits branchJune 27, 2025 07:51
miss-islington pushed a commit to miss-islington/cpython that referenced this pull requestJun 27, 2025
…les (pythonGH-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().(cherry picked from commit07183eb)Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
miss-islington pushed a commit to miss-islington/cpython that referenced this pull requestJun 27, 2025
…les (pythonGH-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().(cherry picked from commit07183eb)Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
@bedevere-app
Copy link

GH-136019 is a backport of this pull request to the3.14 branch.

@bedevere-appbedevere-appbot removed the needs backport to 3.14bugs and security fixes labelJun 27, 2025
@bedevere-app
Copy link

GH-136020 is a backport of this pull request to the3.13 branch.

@bedevere-appbedevere-appbot removed the needs backport to 3.13bugs and security fixes labelJun 27, 2025
@serhiy-storchaka
Copy link
MemberAuthor

Thank you for testing.

serhiy-storchaka added a commit that referenced this pull requestJun 27, 2025
…ales (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 commit07183eb)Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
serhiy-storchaka added a commit that referenced this pull requestJun 27, 2025
…ales (GH-135971) (GH-136019)* 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 commit07183eb)Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@pgansslepganssleAwaiting requested review from pgansslepganssle is a code owner

@abalkinabalkinAwaiting requested review from abalkinabalkin is a code owner

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@serhiy-storchaka@kulikjak

[8]ページ先頭

©2009-2025 Movatter.jp