[fpc-devel] Unicode RTL

Daniël Mantione daniel.mantione at freepascal.org
Wed Nov 16 13:31:36 CET 2005



Op Wed, 16 Nov 2005, schreef Tomas Hajny:

> Big overhead (double maintenance efforts for all targets supporting this
> schisma). :-( I'd say it's better to successively identify the weak points
> and address these case by case.

I know, I'm all for abolishing Chinese (and perhaps Korean), the only 
language(s) that absolutely cannot be written in with an 8 byte code.....

However, it won't work that way in this world and also people in other 
scripts tend to like Unicode.

Now, take for example the FCL. Tstringlist uses ansistrings, for example.

Now there are several solutions:
1. Make a Twidestringlist
2. Make Tstringlist use widestrings internally and add methods for both 
   ansistrings and widestrings.
3. Make an FCL with ansistrings and an FCL with widestrings.

I have been convinced that 3 causes the least maintenance trouble and the 
least overhead for people that don't need it. The reason is strings are 
used everywhere in about any library. It cannot be reduced to a few weak 
points :/

Daniël


More information about the fpc-devel mailing list