[issue9769] PyUnicode_FromFormatV() doesn't handle non-ascii text correctly
Amaury Forgeot d'Arc
report at bugs.python.org
Sat Sep 4 21:26:17 CEST 2010
Amaury Forgeot d'Arc <amauryfa at gmail.com> added the comment:
2 remarks:
- PyUnicode_FromFormat("%s", text) expects a utf-8 buffer.
- Very recently (r84472, r84485), some C files of CPython source code were converted to utf-8. And most of the time, the format given to PyUnicode_FromFormat is a string literal.
So it would make sense for PyUnicode_FromFormat to consider the format string as encoded in utf-8. This is worth asking on python-dev though.
----------
nosy: +amaury.forgeotdarc
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9769>
_______________________________________
More information about the Python-bugs-list
mailing list