[issue9992] Command-line arguments are not correctly decoded if locale and fileystem encodings are different

STINNER Victor report at bugs.python.org
Thu Oct 14 02:34:40 CEST 2010


STINNER Victor <victor.stinner at haypocalc.com> added the comment:

test_undecodable_env() of test_subprocess fails. r85430 removes the following code which was added by Antoine to fix this issue.

# Force surrogate-escaping of \xFF in the child process;
# otherwise it can be decoded as-is if the default locale
# is latin-1.
env['PYTHONFSENCODING'] = 'ascii'

I think that we should accept that b'\xff' can be decoded as '\xff' and that's all.

----------

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


More information about the Python-bugs-list mailing list