[fpc-pascal] use cwstring or fpwidestring on linux

Sven Barth pascaldragon at googlemail.com
Fri Oct 4 20:08:57 CEST 2013


On 04.10.2013 18:13, ko paka wrote:
> Hello,
>
> Are there some practical differences which one to use on linux ?
> When I will use only fpwidestring, then when use functions
> CompareUnicodeString / CompareWideString and current_Collation is nil,
> then routine is recalled on OldManager, where those functions are not
> implemented. Because of that I need to add cwstring before fpwidestring.
> Will be those functions implemented into fpwidestring later or correct
> way is to add and register collation I need (cz) into fpc ?

Correct way is to register the collation you need. AFAIK it's also 
possible to register that at runtime, but I have to admit that I haven't 
followed the discussion of the features of fpwidestring that closely, so 
someone else will need to definitely answer that...

The main difference is that cwstring uses the Widestring manager of the 
system's C library while fpwidestring is a full Pascal Widestring manager.

Regards,
Sven




More information about the fpc-pascal mailing list