Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2008-09

Unicode FPC : "WideString" and tkWString / tkUString

4 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Inoussa OUEDRAOGO

Hi

This program prints "tkUString". Is this by design or should it had print tkWString ?

<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.

Inoussa O.

Reply by email

Florian Klaempfl
to Inoussa OUEDRAOGO: Hi This program prints "tkUString". Is this by design or should it had print tkWString ?…
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.

Show quoted text 16 lines
<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.

Reply by email

Inoussa OUEDRAOGO
to Florian Klaempfl

2008/9/22 Florian Klaempfl :

Show quoted text 10 lines
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.

Ok, thanks. Still testing the unicode support with WST.

Best regards.

Inoussa O.

Reply by email