! 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 !
misc-case-sensitive not functioning
Status:
RESOLVED: WONTFIX

Comments

Description Ben Klein 2013-08-16 09:17:09 CEST
Created attachment 5124 
Screenshot showing incorrect case-sensitive sorting

In previous versions of Thunar, I was able to set MiscCaseSensitive = True in ~/.config/Thunar/thunarrc. In a recent version, case sensitive filenames stopped functioning.

I have also tried using xfconf-query as described here:
http://docs.xfce.org/xfce/thunar/hidden-settings

$ xfconf-query -c thunar -p /misc-case-sensitive -r
$ xfconf-query -c thunar -p /misc-case-sensitive
Property "/misc-case-sensitive" does not exist on channel "thunar".
$ xfconf-query -c thunar -p /misc-case-sensitive -n -t bool -s true
$ xfconf-query -c thunar -p /misc-case-sensitive
true
Comment 1 Jeffery Small 2014-02-17 00:04:17 CET
I would like to confirm this problem on an ASUS laptop running Xubuntu
13.10, Xfce 4.10 and using Thunar 1.6.3.

I have tried modifying LC_COLLATE="C" in /etc/defaults/locale and set
MiscCaseSensitive=TRUE in ~/.config/Thunar/thunarrc with no positive results.
I am still getting:

bin
Desktop
Documents
lib

when what I want is ASCII order:

Desktop
Documents
bin
lib

as you would see in a normal UNIX listing under the "C" locale.  Here is
the output relating to Thunar:

$ xfconf-query -l -c thunar

/default-view
/last-compact-view-zoom-level
/last-details-view-column-order
/last-details-view-column-widths
/last-details-view-fixed-columns
/last-details-view-visible-columns
/last-details-view-zoom-level
/last-icon-view-zoom-level
/last-location-bar
/last-separator-position
/last-show-hidden
/last-side-pane
/last-sort-column
/last-sort-order
/last-statusbar-visible
/last-view
/last-window-height
/last-window-maximized
/last-window-width
/misc-case-sensitive
/misc-date-style
/misc-folders-first
/misc-horizontal-wheel-navigates
/misc-recursive-permissions
/misc-remember-geometry
/misc-show-about-templates
/misc-single-click
/misc-single-click-timeout
/misc-text-beside-icons
/misc-volume-management
/shortcuts-icon-emblems
/shortcuts-icon-size
/tree-icon-emblems
/tree-icon-size

It would be greatly appreciated if this bug could be addressed in some
manner to allow the desired display order.  Thanks.
Comment 2 Matt32 2015-01-26 20:52:38 CET
This bug is maybe connected to "Bug 7110 - Sorting by name sometimes doesn't work correctly in the folder where some included folders have Cyrillic filenames"
Comment 3 Andrzej editbugs 2015-01-28 21:27:41 CET
LC_COLLATE="C" forces case insensitive sort, so Thunar's /misc-case-sensitive option has no effect. Since that comes from glibc I assume it is their intended behavior.

A workaround is to use different locale settings (LC_COLLATE).
Comment 4 Andrzej editbugs 2015-01-28 21:57:41 CET
(In reply to Andrzej from comment #3)
> 
> A workaround is to use different locale settings (LC_COLLATE).

I have just checked that all *.UTF-8 locales also perform case insensitive sort. The solution is to use ISO-8859-1 or en_US (but not en_US.UTF-8).
Comment 5 Harald Judt editbugs 2015-04-13 15:50:36 CEST
Closing as "WORKSFORME".
Comment 6 Ben Klein 2015-04-27 17:59:06 CEST
(In reply to Harald Judt from comment #5)
> Closing as "WORKSFORME".

Did you change anything? Because I'm now on Thunar 1.6.7 and misc-case-sensitive still fails for me.

(In reply to Andrzej from comment #4)
> (In reply to Andrzej from comment #3)
> > 
> > A workaround is to use different locale settings (LC_COLLATE).
> 
> I have just checked that all *.UTF-8 locales also perform case insensitive
> sort. The solution is to use ISO-8859-1 or en_US (but not en_US.UTF-8).

Changing LC_COLLATE to a non-UTF-8 locale will confuse cross-encoding characters, including most (if not all) letters with accents, and non-Latin-1 characters. There's clearly a bug in the unicode sorting algorithm. Is that provided by XFCE libraries or a support library?
Comment 7 Harald Judt editbugs 2015-04-27 18:52:28 CEST
Right, doesn't work here either.
Comment 8 Andrzej editbugs 2015-04-27 21:00:37 CEST
Sorry, there is nothing we can do about it unless we fork the whole I18C sorting support in glibc. Most locales in glibc enforce case-insensitive sorting (perform case folding internally) so Thunar's misc-case-sensitive option has no effect.

This option is a left-over from when Thunar used to implement sorting on its own and did not support locales.

I have not removed this option because it still works with some locales (e.g. en_US), which may be useful for people who liked the old behavior (no locale support + case sensitivity option).

Bug #10303

Reported by:
Ben Klein
Reported on: 2013-08-16
Last modified on: 2015-04-27

People

Assignee:
Jannis Pohlmann
CC List:
6 users

Version

Attachments

Additional information