[Lazarus] Does Lazarus support a complete Unicode Component Library?

Graeme Geldenhuys graemeg.lists at gmail.com
Wed Feb 16 10:20:38 CET 2011


Op 2011-02-16 10:28, Sven Barth het geskryf:
> 
> I personally would prefer the code page aware string to be a new string
> type (e.g. CodePageString) instead of abusing UnicodeString here (it

I think FPC (and Delphi) already have enough string types, so I would
presonally vote for NOT adding yet another string type. I also think
UnicodeString = UTF16 (as in the case of Delphi) is just wrong - Delphi
should then have rather introduced a new type called UTF16String. The
Unicode Standards defined 8 or so valid encodings described as Unicode,
so how can Embarcadero make the assumption that Unicode = UTF-16 only.


> But I wouldn't mind if then String is by default an alias to this
> CodePageString type (or only in certain modes or with certain switches
> similar to {$H+/-} as this would decrease the changes/overview needed
> for old code).

+1
Lets not make the same mistake as Delphi. And I do realize it will not
magically work for every application, because some code might assume
Char = 1byte, so such code would still have to be fixed. But it would be
much less effort that renaming ALL String references in our code to
UnicodeString.



Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/





More information about the Lazarus mailing list