[issue29240] Implementation of the PEP 540: Add a new UTF-8 mode

INADA Naoki report at bugs.python.org
Wed Jan 11 18:57:12 EST 2017


INADA Naoki added the comment:

> Hum, pep540-3.patch doesn't work if the locale encoding is different than ASCII and UTF-8. argv must be reencoded:

I want to skip reencoding.
On UTF-8 mode, arbitrary bytes in cmdline (e.g. broken filename passed by xarg) should be able to roundtrip by UTF-8/surrogateescape.

I don't trust wcstombs/mbstowcs.  It may not guarantee round tripping of arbitrary bytes.

Can -X utf8 option be processed before Py_Main()?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29240>
_______________________________________


More information about the Python-bugs-list mailing list