]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-24214: Fixed the UTF-8 incremental decoder. (GH-12603) (GH-12627)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 30 Mar 2019 13:52:41 +0000 (06:52 -0700)
committerSerhiy Storchaka <storchaka@gmail.com>
Sat, 30 Mar 2019 13:52:41 +0000 (15:52 +0200)
commitbd48280cb66544827952ca91e326cbb178c8c461
tree311677f37b61b17296375feaf118361ea78f0fc2
parent4724ba9b57c45ce4bca3c828f2ed8dcff3800a0c
bpo-24214: Fixed the UTF-8 incremental decoder. (GH-12603) (GH-12627)

The bug occurred when the encoded surrogate character is passed
to the incremental decoder in two chunks.
(cherry picked from commit 7a465cb5ee7e298cae626ace1fc3e7d97df79f2e)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Lib/test/test_codecs.py
Misc/NEWS.d/next/Core and Builtins/2019-03-28-15-22-45.bpo-24214.tZ6lYU.rst [new file with mode: 0644]
Objects/unicodeobject.c