We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
subprocess.Popen(cmd, stdin=subprocess.PIPE, stdout=subprocess.PIPE)
Reduced test case: test.txt
Compare the behavior with the msys2 python:
$ /usr/bin/python -V Python 3.12.7 $ /usr/bin/python test.py
see Expected behavior
vs. failure on readline with mingw Python:
$ /mingw64/bin/python.exe -V Python 3.11.10 $ /mingw64/bin/python.exe test.py
see Actual behavior
0 b'test\n' 1 2 b'test\n' ... 17 b'test\n' 18 b'test\n' 19 b'test\n' 20 b'test\n'
0 1 b'test\r\n' Traceback (most recent call last): File "", line 9, in OSError: [Errno 22] Invalid argument b'' Traceback (most recent call last): File "C:/msys64/home/gedare/test.py", line 34, in proc.stdin.flush() OSError: [Errno 22] Invalid argument
MSYS_NT-10.0-26100
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Description / Steps to reproduce the issue
subprocess.Popen(cmd, stdin=subprocess.PIPE, stdout=subprocess.PIPE)
in the usual way.Reduced test case: test.txt
Compare the behavior with the msys2 python:
see Expected behavior
vs. failure on readline with mingw Python:
see Actual behavior
Expected behavior
0
b'test\n'
1
2
b'test\n'
...
17
b'test\n'
18
b'test\n'
19
b'test\n'
20
b'test\n'
Actual behavior
0
1
b'test\r\n'
Traceback (most recent call last):
File "", line 9, in
OSError: [Errno 22] Invalid argument
b''
Traceback (most recent call last):
File "C:/msys64/home/gedare/test.py", line 34, in
proc.stdin.flush()
OSError: [Errno 22] Invalid argument
Verification
Windows Version
MSYS_NT-10.0-26100
MINGW environments affected
Are you willing to submit a PR?
No response
The text was updated successfully, but these errors were encountered: