Locale-specific string comparasion
hongyuan1306 at gmail.com
Thu Jul 26 06:10:16 CEST 2007
The locale modules privides a strcoll function that can perform locale
specific string comparision, and based on this, we can design custom
comparision function for the sorting.
However, this is quite cumbersome, for we have to derive custom
classes from from the string / unicode objects, and provide
comparision function to use locale.strcoll.
Is there a way to 'install' a system wide LC_COLLATE function, so that
string and unicode objects will automatically use the locale for their
More information about the Python-list