https://bugzilla.redhat.com/show_bug.cgi?id=1124436
--- Comment #8 from Pavel Raiskup praiskup@redhat.com --- Ok, I'm little bit closer to the problem, probably. I'm not familiar with windows, so I'm not sure. Looking at the GetcommandLineW from comment #1 is not a way to go, I would say, because it does not preserve arguments with spaces like './test.exe "arg a" arg_b' to be parsed later.
What we would need is to switch from 'main' to 'wmain' and use -municode. Dunno how portable that is, probably we could use it when we are allowed to (hidden behind some #ifdef/configure checks). Argv from wmain may then be passed to _wspawnv instead of _spawnv (as is done in libtool wrapper now).
Any ideas?