[fpc-devel] Important: Call for testing.
Giulio Bernardi
ugilio at hotmail.com
Mon Mar 31 15:13:52 CEST 2008
> From: ugilio at hotmail.com
> To: fpc-devel at lists.freepascal.org
> Subject: RE: [fpc-devel] Important: Call for testing.
> Date: Sun, 30 Mar 2008 22:21:52 +0000
>
>
>> I have noticed another incompatibility with the previous version - the
>> TParser object in parser.inc can now return toWString as one of the
>> possibilities; the previous version returned toString regardless, but
>> offered a wide and normal version of the string. This change breaks
>> lazarus on wide strings. Which should be changed?
>
> toWString was missing, now it's more delphi compatible and you don't have
> to check every character of the widestring (returned with TParser.TokenWi=
deString) to determine if
> the string is really a wide or an ansi string.
> Note that now you still have a normal and wide version of the string (To=
kenString / TokenWideString) but Token property can be toWString too.
> So the only needed change should be in checking for toWString too when ch=
ecking for toString. Ok, toWString is declared in trunk only, so you should=
use an ifdef for now. However it will be merged to fixes_2_2 too, so the i=
fdef will be only needed till 2.2.2 is released.
>
Maybe this patch (for lazarus) solves the issue? (warning: lazarus compiles=
and runs but I didn't test it).
Giulio
_________________________________________________________________
Discover the new Windows Vista
http://search.msn.com/results.aspx?q=3Dwindows+vista&mkt=3Den-US&form=3DQBRE
-------------- next part --------------
A non-text attachment was scrubbed...
Name: parser_wstring_patch.diff.gz
Type: application/x-gzip
Size: 685 bytes
Desc: not available
Url : http://lists.freepascal.org/lists/fpc-devel/attachments/20080331/1092=
e224/parser_wstring_patch.diff.bin
More information about the fpc-devel
mailing list