Portable locale usage
t at jollybox.de
Tue Sep 6 11:53:37 EDT 2011
On 06/09/11 16:46, ssegvic wrote:
> For the moment, I only wish to properly sort a Croatian text file
> both on Windows and Linux (I am a cautious guy, I like reachable
> When the locale is properly set, sorting works like a charm
> with mylist.sort(key=locale.strxfrm).
The problem with that is of course that a Croatian locale has to be
installed. Many Linux systems don't have locales that aren't used.
More information about the Python-list