[m-rev.] for review: unicode command line arguments on windows

Julien Fischer juliensf at csse.unimelb.edu.au
Thu Dec 15 15:09:44 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?

Will do, presumably you've already done so for MinGW?

> 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

At least for VS2010 there seems to some public documentation for it
<http://msdn.microsoft.com/en-us/library/ff770599.aspx>.

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