[Lazarus] -FcUTF8,-dEnableUTF8 create problem

FreeMan freeman35 at delphiturkiye.com
Sun Feb 22 12:05:00 CET 2015


compiler options:

-dUseCThreads

-FcUTF8

-dEnableUTF8


this is test code:
var
   wProgram: String;
   z:longint;
   s:string;
begin
  Result   := False;
  wProgram :=ParamStrUTF8(0);
  wFileStr := TFileStream.Create(wProgram, fmOpenRead);
  z:= -1;
  z:=wFileStr.Handle;
  s:=wFileStr.FileName;

result:
wProgram --> ^char($000000010CA86358) '/opt/proje_laz/myproject.app'
z --> 40
wFileStr.FileName --> '/opt/proje_laz/myproject.app'
s --> ^char($000000010CA86358) '/opt/proje_laz/myproject.app'

I getted this result while debugging from Whach list, via copy value. 
wFileStr.FileName and s showing different value. "^charxxxx"

On 21.02.2015 17:56, luiz americo pereira camara wrote:
>
> OK. They are equal so problem is elsewhere
>
> One  last shot.
>
> Can you check the values of wFileStr FileName and Handle properties?
>
> Luiz

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


More information about the Lazarus mailing list