MinGW parses the Windows command line different than MS or MinGW-w64 does, See

<p>
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.