[Lazarus] -FcUTF8,-dEnableUTF8 create problem

luiz americo pereira camara luizmed at oi.com.br
Sun Feb 22 13:21:52 CET 2015


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

>  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"
>

OK.

Thanks.

Personally don't have more idea of what is wrong. Hopefully someone else
can find the problem

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


More information about the Lazarus mailing list