[Lazarus] UTF8 RTL for Windows

luiz americo pereira camara luizmed at oi.com.br
Sun Nov 23 22:27:12 CET 2014


2014-11-20 13:21 GMT-03:00 Mattias Gaertner <nc-gaertnma at netcologne.de>:

>
> 2. The new mode: The LCL, FCL and RTL treat all "String" as UTF-8
> encoded. Most RTL file functions now work with full Unicode.
> For example FileExists and aStringList.LoadFromFile(Filename) now
> support full Unicode.
>

[..]

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)

Luiz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20141123/aaf01c6c/attachment-0003.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: TestUTF8FormatSettings.lpr
Type: text/x-pascal
Size: 1588 bytes
Desc: not available
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20141123/aaf01c6c/attachment-0001.p>


More information about the Lazarus mailing list