Trouble sorting lists (unicode/locale related?)

John J. Lee jjl at pobox.com
Mon Sep 22 03:27:08 CEST 2003


"Martin v. Löwis" <martin at v.loewis.de> writes:

> John J. Lee wrote:
> 
> >>>locale.setlocale(locale.LC_ALL, ("no", None))
> > [...]
> >
> >>If this did work, then you can use the DSU pattern like so:
> > [...strxfrm...]
> > The advantage of which is that you don't have to mess with the
> > locale.
> 
> No, it doesn't.

It does set the locale, you mean?  So I guess there's no advantage
there at all?

[...]
> strxfrm requires that the locale is adjusted to the
> desired LC_COLLATE facet.
[...]


John




More information about the Python-list mailing list