Skip to content

[3.15] gh-160185: Fix CJK StreamWriter.reset() not returning to ASCII (GH-160186) - #161067

Merged
gpshead merged 2 commits into
python:3.15from
miss-islington:backport-aa4f541-3.15
Nov 1, 2026
Merged

gpshead merged 2 commits into
python:3.15from
miss-islington:backport-aa4f541-3.15

Conversation

@miss-islington

@miss-islington miss-islington commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

reset() returned early when nothing was pending, so the shift-back
sequence of hz and iso2022_* was never written (regression from
gh-67436). Also fix a reference leak of the stream.write() result.
(cherry picked from commit aa4f541)

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

…ythonGH-160186)

reset() returned early when nothing was pending, so the shift-back
sequence of hz and iso2022_* was never written (regression from
pythongh-67436).  Also fix a reference leak of the stream.write() result.
(cherry picked from commit aa4f541)

Co-authored-by: Gregory P. Smith <68491+gpshead@users.noreply.github.com>
@gpshead
gpshead merged commit 6d18fc9 into python:3.15 Nov 1, 2026
57 checks passed
@github-project-automation github-project-automation Bot moved this from Todo to Done in Sprint Nov 1, 2026
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