[Lazarus] -FcUTF8,-dEnableUTF8 create problem

luiz americo pereira camara luizmed at oi.com.br
Thu Feb 19 12:59:35 CET 2015

2015-02-19 8:19 GMT-03:00 FreeMan <freeman35 at delphiturkiye.com>:

>  showmessage(StrToHex('1234567890'));
> results:
> Compiler Options --> Other is empty
> 31323334353637383930
> Compiler Options --> Other "-FcUTF8"
> 31323334353637383930
> Compiler Options --> Other "-FcUTF8 , -dEnableUTF8"
> 31323334353637383930

Thanks. This means problem is not in ParamStrUTF8(0);

I have two more tips to try to see where the problem is:

What is the type of wProgram?

Compile with the option -al (without debug info to get smaller files) and
look to the generated asm file (has .s extension and lives the same dir the
units are store)

look at the generated code for

wFileStr := TFileStream.Create(wProgram, fmOpenRead);


wFileStr.Read(ar, 4);

BTW: the compiler are being recompiled with those options "-FcUTF8 ,
-dEnableUTF8" or only LCL?

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

More information about the Lazarus mailing list