Re: inconsistent behavior of NSString's localizedCaseInsensitiveCompare
Re: inconsistent behavior of NSString's localizedCaseInsensitiveCompare
- Subject: Re: inconsistent behavior of NSString's localizedCaseInsensitiveCompare
- From: Markus Spoettl <email@hidden>
- Date: Sun, 06 May 2012 08:35:30 +0200
On 5/6/12 12:18 AM, Quincey Morris wrote:
However, when the second word doesn't have "ss" in corresponding position,
then the order is determined by pure character collating sequence for the
language. In your case (which I'm guessing is English), 'ß'< 's'. In
Markus's case (which I'm guessing is German), 'ß'> 's'.
I tried both en_US and de_AT. Both yield the same result for me under 10.7.3.
I think the whole thing must have to do with the fact that ß doesn't have an
upper-case version and the compare is case insensitive. I vaguely remember being
hit by the same thing once, though I can't remember when it was and I'm pretty
sure a system update fixed it. It must have been in the early 10.5 or 10.6 releases.
Regards
Markus
--
__________________________________________
Markus Spoettl
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden