New submission from STINNER Victor <[EMAIL PROTECTED]>: 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. ---------- files: os_exec_bytes.patch keywords: patch, patch messages: 74284 nosy: haypo severity: normal status: open title: Support bytes for subprocess.Popen() versions: Python 3.0 Added file: http://bugs.python.org/file11696/os_exec_bytes.patch _______________________________________ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue4036> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com