Skip to content

[3.14] gh-160522: Restore CJK encoder state after a failed incremental encode (GH-160523) - #161001

Merged
gpshead merged 1 commit into
python:3.14from
miss-islington:backport-5b25582-3.14
Oct 31, 2026
Merged

gpshead merged 1 commit into
python:3.14from
miss-islington:backport-5b25582-3.14

Conversation

@miss-islington

@miss-islington miss-islington commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

A failed IncrementalEncoder.encode() or StreamWriter.write() of a
stateful CJK codec kept the shift state reached before the error
although its output was discarded.
(cherry picked from commit 5b25582)

Co-authored-by: Gregory P. Smith 68491+gpshead@users.noreply.github.com

… encode (pythonGH-160523)

A failed IncrementalEncoder.encode() or StreamWriter.write() of a
stateful CJK codec kept the shift state reached before the error
although its output was discarded.
(cherry picked from commit 5b25582)

Co-authored-by: Gregory P. Smith <68491+gpshead@users.noreply.github.com>
@bedevere-app bedevere-app Bot added the sprint label Oct 31, 2026
@github-project-automation github-project-automation Bot moved this to Todo in Sprint Oct 31, 2026
@gpshead
gpshead enabled auto-merge (squash) October 31, 2026 12:54
@gpshead
gpshead merged commit 7e6b0c9 into python:3.14 Oct 31, 2026
56 checks passed
@github-project-automation github-project-automation Bot moved this from Todo to Done in Sprint Oct 31, 2026
@miss-islington
miss-islington deleted the backport-5b25582-3.14 branch October 31, 2026 13:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants