On Thursday 23 October 2008 13.31:30 Florian Klaempfl wrote: > This is also a simplified view. > - firstly, which real world (!) task really requires to execute an > operation like this, mostly it's something like copy(s,pos(...),...); > - secondly, a properly coded utf-16 application shouldn't do this > either: it doesn't handle surrogates properly and e.g. umlauts can be > encoded in all utf flavours as two "chars": base letter plus the umlaut > (the two dots).
One should normalize unicode text before processing. If normalized to fully composed form there will be no problems with UCS2 single character processing in Western Europe. The GUI kit should return fully composed characters when ever possible to simplify the users life. Martin _______________________________________________ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel