[issue27179] subprocess uses wrong encoding on Windows
Dāvis
report at bugs.python.org
Wed Jun 1 21:03:12 EDT 2016
Dāvis added the comment:
there's no such "ā" command, it's just used to get non-ASCII output
cmd will return:
'ā' is not recognized as an internal or external command,
operable program or batch file.
and this will be encoded in consoles encoding (UTF8 in my example or whatever chcp is set to) which Python will fail to read as it will use locale.getpreferredencoding(False) instead of sys.stdout.encoding
see attached patch, it fixes this problem, you can try reproduce yourself.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27179>
_______________________________________
More information about the Python-bugs-list
mailing list