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.

** Attachment added: "small test program"
   http://launchpadlibrarian.net/32008836/unicode-sorting.py

-- 
Please sort programs in a locale-friendly way
https://bugs.launchpad.net/bugs/427568
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to