Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Oct 17, 2024

Conversation

miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Oct 17, 2024

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 also gh-78662 and gh-124531.

(cherry picked from commit 08ccbb9)

Co-authored-by: Serhiy Storchaka [email protected]
(cherry picked from commit ad3eac1)

…5193) (pythonGH-125657)

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 also pythongh-78662 and pythongh-124531.

(cherry picked from commit 08ccbb9)

Co-authored-by: Serhiy Storchaka <[email protected]>
(cherry picked from commit ad3eac1)
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