! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Thunar: incorrect sort order (at least with cyrillic letters in files and fol...


Description bw.owlet 2012-08-15 07:38:18 CEST
User-Agent:       Mozilla/5.0 (X11; Linux i686; rv:14.0) Gecko/20100101 Firefox/14.0.1
Build Identifier: 1.4.0

The latest version of Thunar (1.4.0) incorrectly sorts contents of folders with cyrillic letters in files and folders names.

Here is the contents of one folder "sorted" by name (ascending).
Looking from top to bottom I see file names starting with...
* cyrillic upper letters
* digits
* cyrillic lower letters
* again digits
* again cyrillic lower letters
* english lower letters
* and again cyrillic lower letters

Concrete example of another folder "sorted" by name:
> голубь.txt
> иволга.txt
> аист.txt
> орёл.txt
> сова.txt

Absoluletly wrong order. The file with name that starts with 'A' is in the middle.

Cyrillic alpabet is:

Аа Бб Вв Гг Дд Ее Ёё Жж Зз Ии Йй Кк Лл Мм Нн Оо Пп Рр Сс Тт Уу Фф Хх Цц Чч Шш Щщ ЬЬ Ыы ЪЪ Ээ Юю Яя

Meanwhile, "ls -1" gives right order
> аист.txt
> голубь.txt
> иволга.txt
> орёл.txt
> сова.txt

PCManFM and other filemanagers give right sort order.

So, Thunar DOES NOT sort with "ls". Also, sort order in Thunar CAN NOT be changed using LC_COLLATE. It ignores this variable, but instead uses its own (vague) algorithm.

Reproducible: Always

Steps to Reproduce:
1. In any folder type
      touch "аист.txt" "голубь.txt" "иволга.txt" "орёл.txt" "сова.txt"
2. Go out (or switch to another) folder and then go into it again to refresh it.
3. File order will be wrong.
Actual Results:  
wrong order
> голубь.txt
> иволга.txt
> аист.txt
> орёл.txt
> сова.txt

Expected Results:  
right order ("ls -1")
> аист.txt
> голубь.txt
> иволга.txt
> орёл.txt
> сова.txt
Comment 1 Andrzej editbugs 2012-10-03 00:02:50 CEST
Duplicate of #7110.

Please do not pollute bugzilla with multiple reports. This bug is being worked on. If you want to help please try the preliminary patch from #7110 and see if it fixes the problem for you.
Comment 2 Nick Schermer editbugs 2012-10-12 11:57:04 CEST

*** This bug has been marked as a duplicate of bug 7110 ***

Bug #9218

Reported by:
Reported on: 2012-08-15
Last modified on: 2012-10-12


Jannis Pohlmann
CC List:
2 users



Additional information