[issue35883] Change invalid unicode characters to replacement characters in argv
Johannes Berg
report at bugs.python.org
Sun May 24 13:40:20 EDT 2020
Johannes Berg <johannes at sipsolutions.net> added the comment:
In fact that python one-liner works with just about everything else that you can throw at it, just not something that "looks like utf-8 but isn't".
And of course adding LC_CTYPE=ascii or something like that fixes it, as you'd expect. Then the "surrogateescape" works fine, since mbstowcs() won't try to decode it as utf-8.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35883>
_______________________________________
More information about the Python-bugs-list
mailing list