Message74284
subprocess doesn't support bytes for the "args" argument.
- On Windows, subprocess._execute_child() converts args to a string
if it was a list
- On UNIX, subprocess._execute_child() converts args to a list if
it's a string
If shell=True, _execute_child() adds a prefix to the arguments.
I don't know if subprocess should accept bytes in a command line.
Attached patch fixes POSIX version of subprocess to support bytes.
See also related issue #4035. |
|
Date |
User |
Action |
Args |
2008-10-03 23:45:15 | vstinner | set | recipients:
+ vstinner |
2008-10-03 23:45:15 | vstinner | set | messageid: <1223077515.41.0.60688229915.issue4036@psf.upfronthosting.co.za> |
2008-10-03 23:45:14 | vstinner | link | issue4036 messages |
2008-10-03 23:45:14 | vstinner | create | |
|