Antoine Pitrou <pit...@free.fr> added the comment: Also witnessed on 2.x (UCS-2 build):
>>> unicode(b'\x00\x01\x00\x00', 'utf-32be') u'\ud800\u0773' >>> unicode(b'\x00\x00\x01\x00', 'utf-32le') u'\U00010000' ---------- nosy: +haypo, lemburg, pitrou priority: normal -> high title: utf-32be codec failing on 16-bit python build for 32-bit value -> utf-32be codec failing on UCS-2 python build for 32-bit value versions: +Python 2.6, Python 2.7, Python 3.2 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue8941> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com