Skip to content

Commit b71fadc

Browse files
authored
gh-159739: Merge the duplicate NEWS entries for the hz tilde fix (GH-161085)
GH-160400 and GH-160519 fixed the same hz encoder bug and each added a NEWS entry for it. Keep one, in the gh-159739 entry.
1 parent 0fd00ee commit b71fadc

2 files changed

Lines changed: 6 additions & 7 deletions

File tree

‎Misc/NEWS.d/next/Library/2026-10-22-08-15-57.gh-issue-160518.hZt1Ld.rst‎

Lines changed: 0 additions & 3 deletions
This file was deleted.
Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
Fix HZ encoding of a tilde at an output buffer boundary and ISO-2022 decoding
2-
of split escape sequences. Reset ISO-2022 incremental codecs to their initial
3-
state. Keep multibyte codec tables and custom encoder error policies alive
4-
when Python code replaces them during use.
1+
Fix the ``hz`` codec sometimes encoding ``~`` as a single ``~`` in text that
2+
mixes ASCII and Chinese characters, and the incremental ``iso2022_*`` codecs
3+
mishandling an escape sequence split across calls or keeping the previous
4+
character set after :meth:`!reset`. Also fix possible crashes in the CJK
5+
incremental and stream codecs when their ``errors`` attribute or their class's
6+
``codec`` attribute is replaced while they are in use.

0 commit comments

Comments
 (0)