Antoine Pitrou <pit...@free.fr> added the comment: Well, the patch was technically useless since, as mentioned, unicode strings are terminated by a NUL character by design.
Anyway, I now get the following error on the 2.7 branch. Perhaps it's related: ====================================================================== FAIL: test_ucs4 (test.test_unicode.UnicodeTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/antoine/cpython/27/Lib/test/test_unicode.py", line 941, in test_ucs4 self.assertEqual(x, y) AssertionError: '\\udbc0\\udc00' != '\\U00100000' ---------- nosy: +pitrou status: closed -> open _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue8821> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com