New submission from 林建佑: Windows also treats full-width spaces as a delimiter when parsing command line arguments.
Therefore, subprocess.run() and subprocess.Popen() also need to quote the arg in the sequence of arguments if there is any full-width spaces in it. Example: >> subprocess.run(['foo', 'half-width space', 'full-width space']) should be executed as >> foo "half-width space" "full-width space" Windows will treat it as 3 arguments but now it is incorrectly executed as >> foo "half-width space" full-width space Windows will treat it as 4 arguments ---------- components: Library (Lib), Windows messages: 291262 nosy: paul.moore, steve.dower, tim.golden, zach.ware, 林建佑 priority: normal severity: normal status: open title: Windows also treats full-width spaces as a delimiter when parsing arguments type: behavior versions: Python 3.7 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue30015> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com