• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: inconsistent behavior of NSString's localizedCaseInsensitiveCompare
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >inconsistent behavior of NSString's localizedCaseInsensitiveCompare (From: Martin Wierschin <email@hidden>)
 >Re: inconsistent behavior of NSString's localizedCaseInsensitiveCompare (From: Quincey Morris <email@hidden>)

  • Prev by Date: Re: inconsistent behavior of NSString's localizedCaseInsensitiveCompare
  • Next by Date: Issue when hiding NSTableColumn while resizing
  • Previous by thread: Re: inconsistent behavior of NSString's localizedCaseInsensitiveCompare
  • Next by thread: Bizarre iMovie behavior
  • Index(es):
    • Date
    • Thread