]> granicus.if.org Git - python/commit
Issue #28774: Fix start/end pos in unicode_encode_ucs1().
authorXiang Zhang <angwerzx@126.com>
Wed, 23 Nov 2016 11:34:01 +0000 (19:34 +0800)
committerXiang Zhang <angwerzx@126.com>
Wed, 23 Nov 2016 11:34:01 +0000 (19:34 +0800)
commitd04d8474dfde5ed584a51a43d3d177376a98fb58
tree2ba05d5d6cfb7bf7ebbba6b41010730ef8ed5351
parent726a57d45f8606ad5a33f7c6bbd1e8c2f8cfbdef
Issue #28774: Fix start/end pos in unicode_encode_ucs1().

Fix error position of the unicode error in ASCII and Latin1
encoders when a string returned by the error handler contains multiple
non-encodable characters (non-ASCII for the ASCII codec, characters out
of the U+0000-U+00FF range for Latin1).
Misc/NEWS
Objects/unicodeobject.c