[issue10521] str methods don't accept non-BMP fillchar on a narrow Unicode build
Alexander Belopolsky
report at bugs.python.org
Thu Nov 25 06:04:00 CET 2010
Alexander Belopolsky <belopolsky at users.sourceforge.net> added the comment:
Here is another str method not ready for non-BMP chars:
>>> u = '\U00010140'
>>> u.translate({ord(u):ord('A')})
'𐅀'
(expected 'A')
>>> u = 'B'
>>> u.translate({ord(u):ord('A')})
'A'
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10521>
_______________________________________
More information about the Python-bugs-list
mailing list