GNOME Bugzilla – Bug 317930
Bad folder sorting when a zero is involved
Last modified: 2011-02-18 16:13:19 UTC
This bug has been opened here: https://bugzilla.ubuntu.com/show_bug.cgi?id=16283 "Hi everyone e.g. folders A0, A1, A2 will be sorted this way in Nautilus: A1, A2, A0 It's not a major issue, but a bit annoying if we look for A0 and forgot this bug!! Thx for your WONDERFUL job already done"
That happens if you create "0-file", "1-file" by example, the 1 is sorted first by nautilus 2.12 or the GTK fileselector
I don't see this.
I've added collation unit tests to GLib which show that g_utf8_collate_key_for_filename() sorts A0, A1, A2 as expected.
I use a fr_FR.UTF-8 locale
with a fr_FR.UTF-8 locale $ sh run-collate-tests.sh -v Sorting ./collate/collate-1.in Sorting ./collate/collate-2.in All tests passed. $ cat files afile 0-file that 1-file 080 $ ./unicode-collate files 080 0-file 1-file afile that $ ./unicode-collate --file files 1-file 0-file 080 afile that
I can reproduce that.
2005-10-06 Matthias Clasen <mclasen@redhat.com> * glib/gunicollate.c (g_utf8_collate_key_for_filename): Handle all-zero sequences correctly. (#317930, Sebastien Bacher)