[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.TokenWideString) 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 (TokenString / TokenWideString) but Token property can be toWString too.
> So the only needed change should be in checking for toWString too when checking 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 ifdef 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=windows+vista&mkt=en-US&form=QBRE
-------------- 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/pipermail/fpc-devel/attachments/20080331/1092e224/attachment.bin>
More information about the fpc-devel
mailing list