]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-154863: Fix iconv encoding of ISO-2022-CN-EXT returning empty bytes (GH-154899)
authorVyron Vasileiadis <hi@fedonman.com>
Fri, 31 Jul 2026 10:56:52 +0000 (13:56 +0300)
committerGitHub <noreply@github.com>
Fri, 31 Jul 2026 10:56:52 +0000 (10:56 +0000)
commitd2ace0c42fa21c4598b7fd3a67718c5da00b66a4
tree04fe9a5be1bc18a5c8e057032cd00fbc1e640425
parent10a84540c2c2533e31f5f0649cc4e4afdd991ba2
gh-154863: Fix iconv encoding of ISO-2022-CN-EXT returning empty bytes (GH-154899)

The flush that emits the pending shift sequence can report a nonreversible
conversion, which the loop mistook for a substituted character. It then
retried while still flushing, converted nothing and returned the empty
output buffer.
Lib/test/test_codecs.py
Objects/unicodeobject.c