> From: [EMAIL PROTECTED] > To: fpc-devel@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
parser_wstring_patch.diff.gz
Description: GNU Zip compressed data
_______________________________________________ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel