[New-bugs-announce] [issue30015] Windows also treats full-width spaces as a delimiter when parsing arguments

林建佑 report at bugs.python.org
Fri Apr 7 07:28:03 EDT 2017


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 <report at bugs.python.org>
<http://bugs.python.org/issue30015>
_______________________________________


More information about the New-bugs-announce mailing list