Fossil SCM
Mingw broken command-line parsing
Closed
906c533302203a0…
· opened 13 years, 7 months ago
- Type
- Code_Defect
- Priority
- Low
- Severity
- Minor
- Resolution
- Fixed
- Subsystem
- —
- Created
- Sept. 9, 2012 8:49 p.m.
MinGW parses the Windows command line different than MS or MinGW-w64 does, See [http://core.tcl.tk/tcl/info/f0cb3345b4040a71ce3b062f118c357363e820e2].
The setargv workaround, is taken over from Tcl 8.6 (win/tclAppInit.c). It was already part of the initial import in CVS in 1998, so it is impossible to know who wrote the original setargv() function. But I (jan nijtmans) adapted it to be useful as unicode command line parser as well. MinGW doesn't support unicode command line parsing (unline VS and MinGW-w64), so the setargv() function is the only known workaround to get it done.
jan.nijtmans added on 2012-09-12 06:57:12 UTC:
fixed now in trunk