[Lazarus] cwstring in arm-linux

Michael Lutz Michi_cc at gmx.net
Fri Oct 21 16:21:13 CEST 2011


Am 21.10.2011 10:00 schrieb Michael Schnell:
> On 10/20/2011 10:26 PM, Felipe Monteiro de Carvalho wrote:
>> Mac OS X uses the decomposed form in UTF-8 to store filenames, which
>> is rather unpleasant.
> 
> Why are they so silly ?

What's silly about that? If they'd store it in precomposed form (NFC)
instead, you still can't use a simple string compare unless you normalize
all strings. And even better, some characters used in some languages
simply have no precomposed form at all, which means you'll always have to
be prepared to handle characters composed of several Unicode code points.

Michael Lutz





More information about the Lazarus mailing list