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.
_______________________________________________
fpc-devel maillist - [email protected]
http://lists.freepascal.org/mailman/listinfo/fpc-devel