Comment 7 for bug 427568

Revision history for this message
Michael Vogt (mvo) wrote : Re: Please sort programs in a locale-friendly way

Hey Michael, thanks for your update.

I am no expert for unicode sorting myself, but I know that python uses wscoll internally for locale.strcoll(). So wide chars should be supported and strcoll should implement sorting based on the rules of the selected locale. For me, I see e.g. Déjà Dup sorted between Debian Documentation and DeskScribe (my locale is en_US) with the current version of software-store.

Attached is a small test program that tests the example for french you gave above. It seems to be sorted correctly with locale.strcoll() (unless I miss something). I'm fine with using python-pyicu of course, I just want to understand the issue first.

For me the test app prints:
unsorted: coté côte côté cote
normal: cote coté côte côté
strcoll: cote côte coté côté

That seems to match your example above.