This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients vstinner
Date 2008-10-03.23:45:14
SpamBayes Score 1.9153546e-08
Marked as misclassified No
Message-id <1223077515.41.0.60688229915.issue4036@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2008-10-03 23:45:15vstinnersetrecipients: + vstinner
2008-10-03 23:45:15vstinnersetmessageid: <1223077515.41.0.60688229915.issue4036@psf.upfronthosting.co.za>
2008-10-03 23:45:14vstinnerlinkissue4036 messages
2008-10-03 23:45:14vstinnercreate