[fpc-devel] Changing Windows API A routines in SysUtils to W in Windows NT

Sergei Gorelkin sergei_gorelkin at mail.ru
Mon Feb 6 21:35:39 CET 2012


06.02.2012 20:39, Felipe Monteiro de Carvalho пишет:
> Hello,
>
> SysUtils for Windows utilizes only A Windows APIs, while it could use
> W APIs in Windows NT. The attached patch starts correcting improving
> the situation.
>
> Advantages of the patch:
>
> * Allows for unicode file names in TStringList.LoadFromFile if you
> install paswstrings as the unicode manager.
>
> Disadvantages of the patch:
>
> * None that I can imagine.
>
> Waiting for comments.
>
So, this is basically a first step of locking Windows RTL to use utf-8 by default and reducing 
chances it ever will call 'W' API without conversions?

Sergei



More information about the fpc-devel mailing list