]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Issue #12892: The utf-16* and utf-32* codecs now reject (lone) surrogates.
authorSerhiy Storchaka <storchaka@gmail.com>
Tue, 19 Nov 2013 09:32:41 +0000 (11:32 +0200)
committerSerhiy Storchaka <storchaka@gmail.com>
Tue, 19 Nov 2013 09:32:41 +0000 (11:32 +0200)
commit58cf607d13c178f41aed05458296b68e985c5fff
treed9a39a30200eef16fec17f0ed934186e8e864149
parenta938bcfe952975cd117994acfef3712d61221f20
Issue #12892: The utf-16* and utf-32* codecs now reject (lone) surrogates.

The utf-16* and utf-32* encoders no longer allow surrogate code points
(U+D800-U+DFFF) to be encoded.
The utf-32* decoders no longer decode byte sequences that correspond to
surrogate code points.
The surrogatepass error handler now works with the utf-16* and utf-32* codecs.

Based on patches by Victor Stinner and Kang-Hao (Kenny) Lu.
Doc/library/codecs.rst
Doc/whatsnew/3.4.rst
Lib/test/test_codecs.py
Misc/ACKS
Misc/NEWS
Objects/stringlib/codecs.h
Objects/unicodeobject.c
Python/codecs.c