[New-bugs-announce] [issue29938] subprocess.run calling bash on windows10 cause 0x80070057 error when capture stdout with PIPE
SLAPaper
report at bugs.python.org
Tue Mar 28 20:56:07 EDT 2017
New submission from SLAPaper:
print(subprocess.run("bash -c ls", shell=True, stdout=subprocess.PIPE, encoding='utf_16_le').stdout)
# 错误: 0x80070057
# error: 0x80070057
And the returncode is 4294967295.
OS: Simp-Chinese Win10; Bash on Windows(Ubuntu 14.04 LTS).
Python 3.5 and Python 3.6 produce the same issue.
While not capture stdout, the command works just fine and output the result onto screen.
----------
components: Windows
messages: 290762
nosy: SLAPaper, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: subprocess.run calling bash on windows10 cause 0x80070057 error when capture stdout with PIPE
type: behavior
versions: Python 3.6
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29938>
_______________________________________
More information about the New-bugs-announce
mailing list