2015-02-19 8:19 GMT-03:00 FreeMan <[email protected]>: > 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); and wFileStr.Read(ar, 4); BTW: the compiler are being recompiled with those options "-FcUTF8 , -dEnableUTF8" or only LCL? Luiz
-- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
