On Dec 9, 2013, at 00:22 , Gerriet M. Denkmann <gerr...@mdenkmann.de> wrote:
> but I have great difficulties imagining a place on this world where = is the > same as ≠. > NSDiacriticInsensitiveSearch → "见≠見" (3 shorts) occurs in "见=見見" (4 > shorts) at {0, 3} The latter suggests that the bar across the equals sign might be regarded as a diacritic. In that sense, it might be something similar to an ‘i’ and a dotless ‘i’. In both cases, there might be *some* justification for regarding the characters as equal in a non-literal search. Interestingly, this page: > http://www.fileformat.info/info/unicode/char/fa0a/index.htm shows 0xfa0a “decomposing” to 0x898b, which if technically correct may well have some effect on the results you’re seeing. Clearly, there’s a bug, in at least the range returned by your original example. It’s unclear whether the match is also a bug. On Dec 9, 2013, at 00:30 , Gerriet M. Denkmann <gerr...@mdenkmann.de> wrote: > NSLog(@"%s %@",__FUNCTION__, [ currentLocale localeIdentifier]); > prints: en_IE > Explicit specifying en_US (as probably the best tested and debugged) makes no > difference. I meant you should try the locale of the language (Japanese?) to which the characters belong. _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com