[issue35883] Change invalid unicode characters to replacement characters in argv
STINNER Victor
report at bugs.python.org
Sat Mar 13 08:15:20 EST 2021
STINNER Victor <vstinner at python.org> added the comment:
> https://bugs.python.org/issue25631 "Segmentation fault with invalid Unicode command-line arguments in embedded Python" (actually 'fixed' since it now abort()s)
This issue is different: it is about the Py_Main() function called explicitly when Python is embedded in an application. Python fails if the command line contains a *wide character* outside the [U+0000; U+10ffff] range.
This issue is about Python on Linux in which case Py_BytesMain() is used to decode *bytes* from the command line.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35883>
_______________________________________
More information about the Python-bugs-list
mailing list