[fpc-devel] Unicode RTL
Marco van de Voort
marcov at stack.nl
Wed Nov 16 13:45:38 CET 2005
> Op Wed, 16 Nov 2005, schreef Micha Nelissen:
> > Dani?l Mantione wrote:
> > > To be short, Juras B. wants to add a Unicode Win32 target, so in the
> > > standard RTL things like Tlist etc. use ansistrings, while in the Unicode
> > > RTL they use widestrings.
> > Why not use ansistrings with UTF-8 ?
> Because then you will have to modify routines like pos, insert, delete.
> Since that is not possible, you would get a pos_utf8, insert_utf8, etc.
You have to anyway. Windows XP+ supports surrogate pairs (IOW true UTF16)
One could argue that codepoints over 40k are rarely used, but if we really
do major work like this, it should be done good. And it should be a good
compromise for all OSes, not just windows.
More information about the fpc-devel