#1 2018-12-15 13:24:12

mpv
Member
From: Ukraine
Registered: 2012-03-24
Posts: 1,571
Website

SynUnicode in FPC is WideString. Is it OK?

@AB, may be we should change a SynUnicode definition a little.
From:

{$ifdef UNICODE}
  SynUnicode = UnicodeString;
{$else}
  SynUnicode = WideString;
{$endif}  

To:

{$ifdef UNICODE}
  SynUnicode = UnicodeString;
{$else}
  {$ifdef FPC}
    SynUnicode = UnicodeString;
  {$else}
    SynUnicode = WideString;
  {$endif}
{$endif}  

As far as I understand it does not matter for Linux except (IMHO) is become more clear.
But for FPC on Windows should be better. Isn't it?

Offline

#2 2018-12-15 13:52:17

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,682
Website

Re: SynUnicode in FPC is WideString. Is it OK?

I am afraid it may fail in some other places, which expect SynUnicode=UnicodeString only with UNICODE conditional.

Offline

Board footer

Powered by FluxBB