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: [email protected]
Reporter: [email protected]
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.
--