[fpc-devel] Unicode FPC : "WideString" and tkWString / tkUString

Florian Klaempfl florian at freepascal.org
Mon Sep 22 19:52:59 CEST 2008


Inoussa OUEDRAOGO schrieb:
> Hi
> 
> This program prints "tkUString". Is this by design or should it had
> print tkWString ?

No, this is currently by design. In 2.3 widestring is a synonym for 
unicodestring on non windows systems. Only on windows, widestring is a 
special string being compatible with olestr.

> 
> <code>
> program widestrprop_p;
> {$mode objfpc}{$H+}
> uses
>   typinfo;
> var
>   p : PTypeInfo;
> begin
>   p := TypeInfo(WideString);
>   WriteLn(GetEnumName(TypeInfo(TTypeKind),Ord(p^.Kind)));
>   ReadLn;
> end.
> </code>
> 
> Best regards.




More information about the fpc-devel mailing list