[issue22023] PyUnicode_FromFormat is broken on python 2
STINNER Victor
report at bugs.python.org
Wed Jul 30 00:43:25 CEST 2014
STINNER Victor added the comment:
Oh, supporting %li and %zi is a new feature, it's too late to add this in Python 2.7. I removed this part of my patch. I commited the other part.
PyUnicode_FromFormat() decodes byte strings from ISO 8859-1 for %S, %R and %V formats. I don't like this choice, we should use the default encoding or UTF-8. But it's also probably too late to change that. At least, b'\xff' is decoded to '\xe4' instead of '\xffe4' (signed/unsigned integer issue, also fixed by my patch). It's a little bit better than before.
----------
resolution: -> fixed
status: open -> closed
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22023>
_______________________________________
More information about the Python-bugs-list
mailing list