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

[3.13] gh-52551: Fix encoding issues in strftime() (GH-125193)#125657

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

Merged

Conversation

@serhiy-storchaka
Copy link
Member

@serhiy-storchakaserhiy-storchaka commentedOct 17, 2024
edited by bedevere-appbot
Loading

Fix time.strftime(), the strftime() method and formatting of the datetime classes datetime, date and time.

  • Characters not encodable in the current locale are now acceptable in the format string.
  • Surrogate pairs and sequence of surrogatescape-encoded bytes are no longer recombinated.
  • Embedded null character no longer terminates the format string.

This fixes alsogh-78662 andgh-124531.

(cherry picked from commitad3eac1)

Fix time.strftime(), the strftime() method and formatting of thedatetime classes datetime, date and time.* Characters not encodable in the current locale are now acceptable in  the format string.* Surrogate pairs and sequence of surrogatescape-encoded bytes are no  longer recombinated.* Embedded null character no longer terminates the format string.This fixes alsopythongh-78662 andpythongh-124531.(cherry picked from commitad3eac1)
@serhiy-storchakaserhiy-storchaka merged commit08ccbb9 intopython:3.13Oct 17, 2024
36 checks passed
@miss-islington-app
Copy link

Thanks@serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.12.
🐍🍒⛏🤖

@serhiy-storchakaserhiy-storchaka deleted the backport-ad3eac1-3.13 branchOctober 17, 2024 19:48
miss-islington pushed a commit to miss-islington/cpython that referenced this pull requestOct 17, 2024
…5193) (pythonGH-125657)Fix time.strftime(), the strftime() method and formatting of thedatetime classes datetime, date and time.* Characters not encodable in the current locale are now acceptable in  the format string.* Surrogate pairs and sequence of surrogatescape-encoded bytes are no  longer recombinated.* Embedded null character no longer terminates the format string.This fixes alsopythongh-78662 andpythongh-124531.(cherry picked from commit08ccbb9)Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>(cherry picked from commitad3eac1)
@bedevere-app
Copy link

GH-125661 is a backport of this pull request to the3.12 branch.

@bedevere-appbedevere-appbot removed the needs backport to 3.12only security fixes labelOct 17, 2024
serhiy-storchaka added a commit that referenced this pull requestOct 17, 2024
…5657) (GH-125661)Fix time.strftime(), the strftime() method and formatting of thedatetime classes datetime, date and time.* Characters not encodable in the current locale are now acceptable in  the format string.* Surrogate pairs and sequence of surrogatescape-encoded bytes are no  longer recombinated.* Embedded null character no longer terminates the format string.This fixes alsogh-78662 andgh-124531.(cherry picked from commit08ccbb9)(cherry picked from commitad3eac1)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.

1 participant

@serhiy-storchaka

[8]ページ先頭

©2009-2025 Movatter.jp