]> granicus.if.org Git - python/commit
bpo-24214: Fixed the UTF-8 and UTF-16 incremental decoders. (GH-14304)
authorSerhiy Storchaka <storchaka@gmail.com>
Tue, 25 Jun 2019 08:54:18 +0000 (11:54 +0300)
committerGitHub <noreply@github.com>
Tue, 25 Jun 2019 08:54:18 +0000 (11:54 +0300)
commit894263ba80af4b7733c2df95b527e96953922656
tree4d779773185514744e39f6e9560563540b9047b6
parent9fe42b49c79c453d905d0395150ba0607fbab18b
bpo-24214: Fixed the UTF-8 and UTF-16 incremental decoders. (GH-14304)

* The UTF-8 incremental decoders fails now fast if encounter
  a sequence that can't be handled by the error handler.
* The UTF-16 incremental decoders with the surrogatepass error
  handler decodes now a lone low surrogate with final=False.
Lib/test/test_codecs.py
Misc/NEWS.d/next/Core and Builtins/2019-06-22-12-45-20.bpo-24214.hIiHeD.rst [new file with mode: 0644]
Objects/stringlib/codecs.h
Objects/unicodeobject.c