[Lazarus] UTF8 RTL for Windows

Mattias Gaertner nc-gaertnma at netcologne.de
Mon Nov 24 14:43:24 CET 2014


On Sun, 23 Nov 2014 18:27:12 -0300
luiz americo pereira camara <luizmed at oi.com.br> wrote:

> 2014-11-20 13:21 GMT-03:00 Mattias Gaertner <nc-gaertnma at netcologne.de>:
>[...]
> Please test and tell what you find out.
> >
> >
> The FormatSettings fields are still encoded with System Code Page
> regardless of DefaultSystemCodePage value.
> 
> While for english locales there's no problem, other locales like PT-BR have
> accented names in days and monthes.
> 
> The problem is in windows SysUtils.GetLocaleStr function that uses non
> unicode Win Api function. This problem will affect also the UnicodeString
> RTL.
> 
> Attached is a test app that shows the issue. It also has a version of
> GetLocaleStr that fixes the issue for the RTL (both versions)

Thanks. It works here too.

I reported it:
http://bugs.freepascal.org/view.php?id=27086

Mattias




More information about the Lazarus mailing list