On Tue, 18 Nov 2014 17:05:49 +0100 (CET)
mar...@stack.nl (Marco van de Voort) wrote:

> In our previous episode, Mattias Gaertner said:
> > Hi and much kudos for those who made the UTF8 RTL.
> > 
> > GetCurrentDir, FindFirst, FileExist, TStringList, etc. all work well. :)
> > 
> > ParamStr is not yet converted and only supports system codepage. I
> > would like to help improving it.
> > 
> > Has someone already started it?
> 
> In {$mode delphiunicode} it returns unicodestring.

A UnicodeString function would be sufficient.
But it seems this uses the argv PChar in system codepage.

Paramstr:=UnicodeString(Argv[Param])

It needs a unicode version of Argv.
For example a function like GetCommandLineW could be used to create a
ArgvW. Is this the right approach?

Mattias
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply via email to