[m-rev.] for review: unicode command line arguments on windows
Julien Fischer
juliensf at csse.unimelb.edu.au
Thu Dec 15 15:16:56 AEDT 2011
On Thu, 15 Dec 2011, Peter Wang wrote:
> On Thu, 15 Dec 2011 14:02:44 +1100, Peter Wang <novalazy at gmail.com> wrote:
>> On Thu, 15 Dec 2011 12:53:34 +1100 (EST), Julien Fischer <juliensf at csse.unimelb.edu.au> wrote:
>>>
>>> argv[0] behaves oddly in if the name of the program is directory
>>> qualified and some of the directory components are quoted.
>>
>> Ugh. I'll try __wgetmainargs instead.
>
> Can you test this on MSVC? I'd prefer not to be using this internal(?)
> function but at least we wouldn't be the only ones:
> http://www.google.com/codesearch#search/&q=__wgetmainargs&type=cs
>
> --
>
> Branches: main, 11.07
>
> Use __wgetmainargs to get Unicode command-line arguments on Windows instead
> of GetCommandLineW then parsing with CommandLineToArgvW. CommandLineToArgvW
> has its own strange ideas about how command-lines should be parsed,
> e.g. as discovered by Julien
Actually, do you still need to #include shellapi.h with this change?
Julien.
--------------------------------------------------------------------------
mercury-reviews mailing list
Post messages to: mercury-reviews at csse.unimelb.edu.au
Administrative Queries: owner-mercury-reviews at csse.unimelb.edu.au
Subscriptions: mercury-reviews-request at csse.unimelb.edu.au
--------------------------------------------------------------------------
More information about the reviews
mailing list