bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: new module 'system-quote'


From: Eli Zaretskii
Subject: Re: new module 'system-quote'
Date: Fri, 11 May 2012 08:07:53 +0300

> From: Bruno Haible <address@hidden>
> Cc: address@hidden
> 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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]