> 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) see http://www.unicode.org/faq/utf_bom.html#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. _______________________________________________ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel