> From: Bruno Haible <[email protected]> > Cc: [email protected] > Date: Fri, 11 May 2012 02:08:43 +0200 > > Thanks a lot for doing this testing. Yes, it is consistent with what you > said: The wildcard expansion between GetCommandLine() and argv has been > changed to consider '*' inside double-quotes as a wildcard. > > Any idea what gnulib can do against it? > > The only thing I can see is to modify the source code of all programs: > Change > > int > main (int argc, char *argv[]) > { > > to > > int > main (int argc, char *argv[]) > { > argv = RESTORE_PROGRAM_ARGV (argv); > > where gnulib would define a macro RESTORE_PROGRAM_ARGV like this: > > #ifdef WINDOWS_NATIVE > # define RESTORE_PROGRAM_ARGV(argv) parse_and_split (GetCommandLine ()) > #else > # define RESTORE_PROGRAM_ARGV(argv) argv > #endif > > But such source code modifications are obviously heavy. Do you see > something simpler?
I know of nothing simpler, if you want to support environments other than MinGW.
