Bug 418986 - Folder and file names beginning with letters like c-cedilla, o-umlaut, s-cedilla, u-umlaut are not sorted correctly
Summary: Folder and file names beginning with letters like c-cedilla, o-umlaut, s-cedi...
Status: REPORTED
Alias: None
Product: dolphin
Classification: Applications
Component: view-engine: general (show other bugs)
Version: 19.12.3
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-03-18 13:03 UTC by Sadi
Modified: 2020-04-20 17:49 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sadi 2020-03-18 13:03:17 UTC
SUMMARY
Folder and file names are not sorting correctly when it comes to letters with accents like c-cedilla, o-umlaut, s-cedilla, u-umlaut, etc. where system regional settings have United States English.

STEPS TO REPRODUCE
1. Go to (or create) a folder where there are a number of folders/files beginning with different letters (e.g. where folders and files are sorted in ascending order)
2. Create some new folders/files beginning with letters c-cedilla, o-umlaut, s-cedilla, u-umlaut, etc.

OBSERVED RESULT
All of these folders and files are sorted after the letter Z. This doesn't change even when the language specified for "Collating and Sorting" under "System Settings / Regional Settings / Formats" is not English, but a language that actually includes these letters in its alphabet.

EXPECTED RESULT
They should actually be sorted after each appropriate letter in the English alphabet (C,O,S,U, etc.).

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Kubuntu 19.10
KDE Plasma Version: 5.18.3
KDE Frameworks Version: 5.67.0
Qt Version: 5.12.4

ADDITIONAL INFORMATION
Under the same system, Krusader sorts such folders and files in correct order, unlike Dolphin.
Comment 1 Christoph Feck 2020-04-09 19:07:56 UTC
Cannot reproduce. Please add the output of this Konsole command:

set | grep ^L[AC]
Comment 2 Sadi 2020-04-10 09:04:38 UTC
(In reply to Christoph Feck from comment #1)
> Cannot reproduce. Please add the output of this Konsole command:
> 
> set | grep ^L[AC]

Thanks. This is the output:

LANG=en_US.UTF-8
LANGUAGE=en_US:en_GB
LC_COLLATE=tr_TR.UTF-8
LC_CTYPE=en_US.UTF-8
LC_MEASUREMENT=tr_TR.UTF-8
LC_PAPER=en_GB.UTF-8
LC_TIME=en_GB.UTF-8
Comment 3 Sadi 2020-04-10 10:19:00 UTC
(In reply to Christoph Feck from comment #1)

I've done a test to identify the cause of this problem by creating a another user, and I couldn't reproduce the problem there either (there's only a minor problem with the ordering of dotless i and I with dot above).
The output of set | grep ^L[AC] is:
LANG=en_US.UTF-8
LANGUAGE=en_US.UTF-8
LC_COLLATE=tr_TR.UTF-8
LC_CTYPE=en_US.UTF-8
LC_MEASUREMENT=en_DK.UTF-8
LC_PAPER=en_GB.UTF-8
LC_TIME=en_GB.UTF-8

As you can see, there are only 2 minor differences:
LANGUAGE=en_US:en_GB
LC_MEASUREMENT=tr_TR.UTF-8
Comment 4 Sadi 2020-04-10 10:19:37 UTC
(In reply to Christoph Feck from comment #1)

I've done a test to identify the cause of this problem by creating a another user, and I couldn't reproduce the problem there either (there's only a minor problem with the ordering of dotless i and I with dot above).
The output of set | grep ^L[AC] is:
LANG=en_US.UTF-8
LANGUAGE=en_US.UTF-8
LC_COLLATE=tr_TR.UTF-8
LC_CTYPE=en_US.UTF-8
LC_MEASUREMENT=en_DK.UTF-8
LC_PAPER=en_GB.UTF-8
LC_TIME=en_GB.UTF-8

As you can see, there are only 2 minor differences:
LANGUAGE=en_US:en_GB
LC_MEASUREMENT=tr_TR.UTF-8
Comment 5 Sadi 2020-04-20 17:49:42 UTC
(In reply to Christoph Feck from comment #1)

Hi,

I think I've finally found the cause of this problem!
The file ~/.config/dolphinrc has the following innocent line (apparently because I chose -instead of the defauld "Natural" - "Alphabetical, case insensitive")

SortingChoice=CaseInsensitiveSorting

My problem has disappeared after I removed it.
But I think this needs attention as such a choice shouldn't cause that problem.