[issue6697] Python 3.1 segfaults when invalid UTF-8 characters are passed from command line

Amaury Forgeot d'Arc report at bugs.python.org
Wed Aug 19 16:45:56 CEST 2009


Amaury Forgeot d'Arc <amauryfa at gmail.com> added the comment:

The %U format seems adequate for this purpose - actually
PyObject_GenericSetAttr uses it already.

Yes, the exception message will contain the same lone UTF-8
surrogates; this is not a problem because sys.stderr uses the
"backslashreplace" error handler.

----------

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


More information about the Python-bugs-list mailing list