<Solved>mint 17.1 GRRR nemo's case-sensitive filename

Please post suggestions for improvement of Cinnamon on:
https://github.com/linuxmint/Cinnamon
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
User avatar
sadhu
Level 5
Level 5
Posts: 860
Joined: Fri Nov 22, 2013 9:48 am
Location: Sri Lanka
Contact:

<Solved>mint 17.1 GRRR nemo's case-sensitive filename

Post by sadhu »

How the dickens do I set nemo to show a case-insensitive file list?

Don't direct me to file /etc/locale.conf. It doesn't exist on my newly installed system. I get this warning when I start nemo & others from the command line:

Code: Select all

Gtk-WARNING **: Locale not supported by C library.
	Using the fallback 'C' locale
i have also seen other, more detailed error messages in the terminal window--ones that list all of the possible "un_utf-8" possibilities, but I did'nt think to copypaste.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
sabbe sattā bhavantu sukhitattā. LM 21.2-64 Cinn 5.8.4
MeneerJansen

Re: mint 17.1 GRRRR nemo's default case-sensitive filename

Post by MeneerJansen »

Joined this forum for just this reason. There must be someway to do this.
gwi
Level 2
Level 2
Posts: 97
Joined: Mon Jun 04, 2012 4:20 pm

Re: mint 17.1 GRRRR nemo's default case-sensitive filename

Post by gwi »

sadhu wrote:How the dickens do I set nemo to show a case-insensitive file list?
...
Unix/Linux file systems are case sensitive, as opposed to Windows file systems.

Nemo sorts the list case-insensitive. If you have, for example, a directory called documents and a directory Downloads, Nemo shows then in the order:
documents
Downloads
(when sorting ascending on name).

A case sensitive list (like in Filezilla) would show
Downloads
documents
Regards,

George

Linux Mint 21.2 Victoria Cinnamon 64-bit, Asus Vanguard B85, Intel Core i7 4770S
MeneerJansen

Re: mint 17.1 GRRRR nemo's default case-sensitive filename

Post by MeneerJansen »

All of a sudden Nemo indeed sorts case-insensitive. I don't know why! Since my last boot the only thing I changed on my system is the locale (from en_GB to en_US). A few days ago it listed alls files and folders that started w/ a capitol letter first and then those starting w/ lower case letters (i.e. case sensitive).

[edit] Found this topic from 2007 in which it is indeed confirmed that your locale setting (i.e. LC_COLLATE) determines how files/directories are lised/sorted!
User avatar
mdavies5
Level 3
Level 3
Posts: 198
Joined: Sat Aug 11, 2012 1:02 am

Re: mint 17.1 GRRRR nemo's default case-sensitive filename

Post by mdavies5 »

I have never had this problem with Nemo but I had a similar problem with Nautilus while reviewing another distro. I played around for hours with Locale settings and followed all the settings that others reported "works for me". Eventually it just worked, I think it might be the UTF8 setting; LC_COLLATE = "en-AU.UTF-8". I understand your "GRRRR" but isn't it great when the problem is resolved :D
Cheers, Mike
User avatar
sadhu
Level 5
Level 5
Posts: 860
Joined: Fri Nov 22, 2013 9:48 am
Location: Sri Lanka
Contact:

Re: mint 17.1 GRRRR nemo's default case-sensitive filename

Post by sadhu »

Would be grateful if somebody could tell me what file contains the line "LC_COLLATE" I'm running 17.1, there's no /etc/locale.conf in my system. There is a /etc/mdm/locale.conf, But it looks nothing like what people above have been talking about. I still edited it as follows

Code: Select all

English(USA)	en_US
# English(USA)	en_US.ISO-8859-15
English(USA)	en_US.UTF-8
I commented out the first two English(USA), lines, then just the 2nd line. Setup > Language shows "English United States UTF-8. Neither change had any effect on nemo's file list sort order.
mdavies5 wrote:I played around for hours with Locale settings and followed all the settings that others reported "works for me". Eventually it just worked, I think it might be the UTF8 setting; LC_COLLATE = "en-AU.UTF-8".
You sound like a gamer who enjoys little puzzles. Me, it angers me that I have to waste my time fixing something that somebody else broke.
mdavies5 wrote:I understand your "GRRRR" but isn't it great when the problem is resolved :D
Nope. Residual annoyance.
sabbe sattā bhavantu sukhitattā. LM 21.2-64 Cinn 5.8.4
User avatar
sadhu
Level 5
Level 5
Posts: 860
Joined: Fri Nov 22, 2013 9:48 am
Location: Sri Lanka
Contact:

Re: mint 17.1 GRRRR nemo's default case-sensitive filename

Post by sadhu »

When I issue nemo -q I get the following

Code: Select all

(nemo:18195): Gtk-WARNING **: Locale not supported by C library.
	Using the fallback 'C' locale.
Initializing folder-color-switcher extension...
sys:1: Warning: /build/buildd/glib2.0-2.40.2/./gobject/gsignal.c:2580: instance '0xf63660' has no handler with id '256'
From running here and there searching for a way bring back case-INsensitive file list in nemo, I guess that LC_LOCALE is some kind of environment variable. What app sets it, I wonder?

Here is an edited list of my environment variables if perhaps that might shed some light.

Code: Select all

LC_PAPER="en_US.UTF-8"
XDG_VTNR=7
LC_ADDRESS="en_US.UTF-8"
SSH_AGENT_PID=17045
XDG_SESSION_ID=c3
LC_MONETARY="en_US.UTF-8"
GPG_AGENT_INFO=/run/user/1000/keyring-jXSM5H/gpg:0:1
TERM=xterm
SHELL=/bin/bash
VTE_VERSION=3409
XDG_SESSION_COOKIE=82d0a6f7c7699540cf9c944f54c25738-1422089884.536212-785676345
GJS_DEBUG_OUTPUT=stderr
LC_NUMERIC="en_US.UTF-8"
WINDOWID=48238110
GNOME_KEYRING_CONTROL=/run/user/1000/keyring-jXSM5H
GJS_DEBUG_TOPICS=JS ERROR;JS LOG
USER=sadhu
LS_COLORS=rs=<<snip>>
LC_TELEPHONE="en_US.UTF-8"
SSH_AUTH_SOCK=/run/user/1000/keyring-jXSM5H/ssh
SESSION_MANAGER=local/desktop:@/tmp/.ICE-unix/16983,unix/desktop:/tmp/.ICE-unix/16983
USERNAME=sadhu
DEFAULTS_PATH=/usr/share/gconf/default.default.path
XDG_CONFIG_DIRS=/etc/xdg/xdg-default:/etc/xdg
PATH=/home/sadhu/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/sadhu/bin
DESKTOP_SESSION=default
LC_IDENTIFICATION="en_US.UTF-8"
GDM_XSERVER_LOCATION=local
PWD=/home/sadhu
GNOME_KEYRING_PID=16973
LANG=en_US.UTF-8
MANDATORY_PATH=/usr/share/gconf/default.mandatory.path
LC_MEASUREMENT="en_US.UTF-8"
MDM_XSERVER_LOCATION=local
GDMSESSION=default
CINNAMON_VERSION=2.4.6
SHLVL=1
XDG_SEAT=seat0
HOME=/home/sadhu
GNOME_DESKTOP_SESSION_ID=this-is-deprecated
XDG_SESSION_DESKTOP=default
LOGNAME=sadhu
XDG_DATA_DIRS=/usr/share/default:/usr/share/gnome:/usr/local/share/:/usr/share/:/usr/share/mdm/
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-t4mMxVsZkC,guid=79b14b4c0f0993847104404d54c35e9c
LESSOPEN=| /usr/bin/lesspipe %s
PROMPT_COMMAND=ps1="\w\n"
MDMSESSION=default
TEXTDOMAIN=im-config
WINDOWPATH=7
XDG_RUNTIME_DIR=/run/user/1000
DISPLAY=:0
MDM_LANG=en_US.UTF-8
XDG_CURRENT_DESKTOP=X-Cinnamon
LESSCLOSE=/usr/bin/lesspipe %s %s
LC_TIME="en_US.UTF-8"
TEXTDOMAINDIR=/usr/share/locale/
COLORTERM=gnome-terminal
XAUTHORITY=/home/sadhu/.Xauthority
LC_NAME="en_US.UTF-8"
_=/usr/bin/printenv
Notice that LC_COLLATE is not set.
Last edited by sadhu on Sat Jan 24, 2015 6:01 am, edited 2 times in total.
sabbe sattā bhavantu sukhitattā. LM 21.2-64 Cinn 5.8.4
User avatar
sadhu
Level 5
Level 5
Posts: 860
Joined: Fri Nov 22, 2013 9:48 am
Location: Sri Lanka
Contact:

Re: mint 17.1 GRRRR nemo's default case-sensitive filename

Post by sadhu »

gwi wrote:Nemo sorts the list case-insensitive. If you have, for example, a directory called documents and a directory Downloads, Nemo shows then in the order:
documents
Downloads
Sorry, GWI, if this were true for me I wouldn't have written this post. What I want nemo's file list to show is
  • apple
    Banana
    cherry
    Doughnuts
But what it shows on my newly-installed, out of the box, system is:
  • Banana
    Doughnuts
    apple
    cherry
sabbe sattā bhavantu sukhitattā. LM 21.2-64 Cinn 5.8.4
MeneerJansen

Re: mint 17.1 GRRRR nemo's default case-sensitive filename

Post by MeneerJansen »

First of all check your locale settings in a terminal w/ the following command:

Code: Select all

jansen@linux:~$ locale
LANG=en_US.UTF-8
LANGUAGE=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="en_US.UTF-8"
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=en_US.UTF-8
Every time you've done something to set the locale check w/ the command above. Secondly, I used (among others) this article. I installed as many packages I thought were useful (read: no strange foreign languages) via Synaptic and I ran

Code: Select all

sudo dpkg-reconfigure locales
Added to my ~/.bashrc file:

Code: Select all

export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
export LANGUAGE=en_US.UTF-8
And added the same lines to ~/.profile. Probably I created the file /etc/locale.conf myself (just to be sure) and pasted the following line in it:

Code: Select all

LC_COLLATE=en_US.UTF-8 ls -x
I did not edit the file /etc/mdm/locale.conf because it's auto-generated. I probably made the file /etc/default/locale myself (to be sure) and pasted the following text in it (see this link):

Code: Select all

LANG="en_US.UTF-8"
LANGUAGE="en_US:en"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_IDENTIFICATION="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"
I'm not saying that you're done after this, nor that all of it is necessary. I was trying to solve an irritating problem in Thunderbird (e-mail) concerning special characters like é and I thought that it might be caused by a wrong 'locale' setting. All of a sudden I noticed that the Nemo sorting problem was gone too.

Hope this helps. :)
User avatar
sadhu
Level 5
Level 5
Posts: 860
Joined: Fri Nov 22, 2013 9:48 am
Location: Sri Lanka
Contact:

Re: mint 17.1 GRRRR nemo's default case-sensitive filename

Post by sadhu »

MeneerJansen wrote:Hope this helps. :)
Thank you so much! It now works with the case-insensitive file list. :D

For the benefit of others who may be reading this, I will retrace the steps that I went through.

The command 'locales' showed that LANGUAGE= was unset.

Earlier I had created /etc/locales using all the parameters from the 'locales' command, and correcting the blank LANGUAGE= line. However, according to your post there should have been other parameters for each line. After creating it (probably incorrectly) I ran 'sudo dpkg-reconfigure locales'. No change in behaviour, even after both logging out and restarting.

Then I created the /etc/locale.conf with just one line, as suggested above.

I had earlier tried setting LANGUAGE via the command line, but it didn't seem to work. I hadn't gotten around to updating the two bash files yet. So now I updated both .bashrc and .bash.profile as suggested.

My system contains a /etc/default/locale file, which I edited. I changed the line that read "LANGUAGE=en_us:en" to ...en_us.UTF-8.

I then logged out and back in---and it works! I suspect the problem lay in the .bashrc and .bash.profile files. Or perhaps in the /etc/default/locales file, but I wonder about that because my file was the same as yours, with the weird "...en_US:en" entry.

My advice to others is go through these steps one at a time, and log out and back in each time, then check nemo to see if the file name sorting has changed. Please let us know which tweak caused the change.

-Sadhu!
sabbe sattā bhavantu sukhitattā. LM 21.2-64 Cinn 5.8.4
MeneerJansen

Re: <Solved>mint 17.1 GRRR nemo's case-sensitive filename

Post by MeneerJansen »

@Sadhu: so good to hear that is works! Just as you I wonder which of the settings files actually did the trick. :)
Locked

Return to “Cinnamon”