You are not logged in.

#1 2023-08-13 22:48:42

marko2010
Member
Registered: 2010-04-17
Posts: 70

[SOLVED] Getting file manager to display a case INsensitive sort

I recently installed Arch with the Mate desktop on a new laptop. On little annoyance is when I launch the Caja file manager or terminal, it displays folder and files with a case sensitive double sort. So I get:

folder A
folder C
folder b
file A
file C
file b
file c

But what I am used to (and want) is:
folder A
folder b
folder C
file A
file b
file C
file c

Note, I did purposely configure Caja to sort folders before files, so that part is as expected. What I don't  like is it doing a second sort for lowercase

I've installed Arch more times than I can remember over the past ten years, and I never remember encountering this problem. I am using the most recent release of the regular Arch kernel, and the output running the locale command is:

locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES=
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

Last edited by marko2010 (2023-08-15 06:28:03)

Offline

#2 2023-08-14 08:07:16

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,691

Re: [SOLVED] Getting file manager to display a case INsensitive sort

First off all, fix your locale.
https://wiki.archlinux.org/title/Locale

I never remember encountering this problem

LC_COLLATE is the relevant environment for at least ls (and probably caja), you're sorting LC_COLLATE=C because your locale is broken.

Offline

#3 2023-08-14 08:12:13

jonno2002
Member
Registered: 2016-11-21
Posts: 877

Re: [SOLVED] Getting file manager to display a case INsensitive sort

https://wiki.archlinux.org/title/Locale

im guessing your '/etc/locale.conf' is either empty or missing

this caja git issue mentions locale causing an issue so fix that and all might be fixed!

EDIT: ninja'd by seth

Last edited by jonno2002 (2023-08-14 08:12:42)

Offline

#4 2023-08-15 06:27:01

marko2010
Member
Registered: 2010-04-17
Posts: 70

Re: [SOLVED] Getting file manager to display a case INsensitive sort

Thank you both, that put me back on track. Apparently, I forgot uncomment  my locale in /etc/locale.gen and then run locale-gen

Once I did than and logged out/and in, I had the type of sorting I am used to. That's what happens when I do too much of the install from memory -- I miss an important step.

Offline

Board footer

Powered by FluxBB