[Lazarus] Set UTF-8 in RTL has create error in const definitaion

FreeMan freeman35 at delphiturkiye.com
Sun Feb 15 16:10:06 CET 2015


-dUseCThreads

-FcUTF8

-dEnableUTF8RTL

thats in my project options, compiler Options -> other
I get same error. I can not compile.

this from my test, I remove Turkish chars from variable definition, 
compiled project, and ShowMessage result is normal view. I mean chars 
painting normal

var TBS_Captions2: array[0..2, 0..1] of string[15] = ( 
('Anamnez','ANAMNEZ'),('Bal Dosyalar','BALI DOSYALAR'),('Notlar','NOTLAR'));
begin
TBS_Captions2[1,0]:= 'Bağlı Dosyalar';
TBS_Captions2[1,1]:= 'BAĞLI DOSYALAR';
ShowMessage(TBS_Captions2[1,0] + LineEnding + TBS_Captions2[1,1]);



On 15.02.2015 16:41, Juha Manninen wrote:
> Ok, use define -dEnableUTF8RTL.
> For details see :
>    http://wiki.freepascal.org/Better_LCL_Unicode_Support#Testing_with_Lazarus
>
> Juha

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20150215/c9b713b4/attachment-0003.html>


More information about the Lazarus mailing list