]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-99612: Fix PyUnicode_DecodeUTF8Stateful() for ASCII-only data (GH-99613)
authorSerhiy Storchaka <storchaka@gmail.com>
Thu, 1 Dec 2022 12:54:51 +0000 (14:54 +0200)
committerGitHub <noreply@github.com>
Thu, 1 Dec 2022 12:54:51 +0000 (14:54 +0200)
commitf08e52ccb027f6f703302b8c1a82db9fd3934270
tree7036b719b8d50a974896b2e75586c7f64af55b27
parentd460c8ec52716a37080d31fdc0f673edcc98bee8
gh-99612: Fix PyUnicode_DecodeUTF8Stateful() for ASCII-only data (GH-99613)

Previously *consumed was not set in this case.
Lib/test/test_capi/test_codecs.py [new file with mode: 0644]
Misc/NEWS.d/next/C API/2022-11-20-09-52-50.gh-issue-99612.eBHksg.rst [new file with mode: 0644]
Modules/_testcapi/unicode.c
Objects/unicodeobject.c