Yes, it's correct behavior. localizedCompare: compares logically, not
visually.
If you did a diacritic-insensitive compare, they would compare equal,
because MAI EK is primary ignorable.
Deborah Goldsmith
Apple Inc.
golds...@apple.com
On Apr 15, 2009, at 12:13 AM, Gerriet M. Denkmann wrote:
This is the logical order of the Thai word for "low":
THAI CHARACTER TO TAO, THAI CHARACTER MAI EK, THAI CHARACTER SARA AM
and this is the order usually used in writing (bottom to top):
THAI CHARACTER TO TAO, THAI CHARACTER SARA AM, THAI CHARACTER MAI EK.
Both strings look (at least in 10.5.6) identical - with the MAI EK
correctly on top of SARA AM.
But localizedCompare: thinks that they are not (i.e. does not return
NSOrderedSame).
Is this correct?
Kind regards,
Gerriet.
_______________________________________________
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:
http://lists.apple.com/mailman/options/cocoa-dev/goldsmit%40apple.com
This email sent to golds...@apple.com
_______________________________________________
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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to arch...@mail-archive.com