View Ticket
Not logged in
2012-09-12
06:57 Closed ticket [906c533302]: Mingw broken command-line parsing plus 3 other changes artifact: 55eeb476ff user: jan.nijtmans
2012-09-11
12:16 Fixed ticket [906c533302]. artifact: f92b6b59bc user: drh
2012-09-09
20:53
Fix ticket [906c533302]. If you want to replace the mingw command-line pa a better one (conforming to ms rules), compile with -DMINGW_BROKEN_MAINARGS. MinGW doesn't support unicode command line parsing (linker option -municode), so the option -DMINGW_BROKEN_MAINARGS can be used to fix that too. check-in: 047dd62604 user: jan.nijtmans tags: mingw-broken-cmdline
20:49 New ticket [906c533302] Mingw broken command-line parsing. artifact: d48d1811a6 user: jan.nijtmans

Ticket UUID: 906c533302203a0997738b21e434fe4791cd90f0
Title: Mingw broken command-line parsing
Status: Closed Type: Code_Defect
Severity: Minor Priority: Low
Subsystem: Resolution: Fixed
Last Modified: 2012-09-12 06:57:12
Version Found In: 1.23
Description & Comments:
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