]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Issue #9804: ascii() now always represents unicode surrogate pairs as
authorAntoine Pitrou <solipsis@pitrou.net>
Thu, 9 Sep 2010 20:30:23 +0000 (20:30 +0000)
committerAntoine Pitrou <solipsis@pitrou.net>
Thu, 9 Sep 2010 20:30:23 +0000 (20:30 +0000)
commite4a189274f3d88d64d5238bf340cec96eff4e5e0
tree5ead5f4f2fe3799a34155f2e41a04518adb995b1
parentea99c5c94985c21d8a64c9a3d753bde7f801c14a
Issue #9804: ascii() now always represents unicode surrogate pairs as
a single `\UXXXXXXXX`, regardless of whether the character is printable
or not.  Also, the "backslashreplace" error handler now joins surrogate
pairs into a single character on UCS-2 builds.
Lib/test/test_builtin.py
Lib/test/test_codeccallbacks.py
Misc/NEWS
Python/codecs.c