[issue27179] subprocess uses wrong encoding on Windows

Martin Panter report at bugs.python.org
Thu Jun 2 18:46:17 EDT 2016


Martin Panter added the comment:

Patch B changes _Py_device_encoding() to accept a file descriptor of 3, which seems wrong to me.

Patch A is like the earlier patch, but calls os.device_encoding(1) instead of relying on sys.stdout, etc. I think this will still fail when the Python parent’s stdout was never open (then fd 1 will be invalid, or used as something else).

----------

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


More information about the Python-bugs-list mailing list