Bogus locales on Mac

Michael Hudson mwh at
Thu Jul 15 13:18:03 CEST 2004

Ellen Herzfeld <xlii at> writes:

> Has anyone using a Mac managed to sort accented strings correctly?
> The Mac has mostly tried to be quite international so I'm surprised at
> this. Have I missed something?

I suspect using some other method than the C libraries locale
functions is necessary... something like CFStringCompare?  Dunno if
Python wraps that, though.  Or maybe use PyObjC and NSSting's
-compare:options:range:locale: method.


  <dash> wow. this code does something highly entertaining, but
         nowhere near correct                   -- from Twisted.Quotes

More information about the Python-list mailing list