[Issue 19502] New: windows command line arguments wrongly split
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Dec 18 18:15:21 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=19502
Issue ID: 19502
Summary: windows command line arguments wrongly split
Product: D
Version: D2
Hardware: All
OS: Windows
Status: NEW
Severity: major
Priority: P1
Component: druntime
Assignee: nobody at puremagic.com
Reporter: john.loughran.colvin at gmail.com
Druntime currently uses CommandLineToArgvW to deal with the command line args
on windows, which is a close but not exact match to how the C runtime on
windows works.
In the case where the command line looks like this:
"C:\test\"\blah.exe
Druntime using CommandLineToArgvW parses this as
["C:\\test\\", "\\blah.exe"]
note the 2 !!! arguments. The c runtime does
["C:\test\\blah.exe"]
The result is that programs that look at args might behave completely
differently depending on exactly how the path to them is written.
--
More information about the Digitalmars-d-bugs
mailing list