You are not logged in.

#1 2014-03-15 15:09:31

rudrab
Member
Registered: 2014-03-15
Posts: 7

arch lists (like ls, nautilus) is case sensitive

Hi,
I tried to discuss this issue in the IRC channel, but as a beginner, I failed to solve it.
In my Arch, all lists are case sensitive.
so, if I do ls, Downloads comes before bin (same in nautilus), and in IRC channel list, freenode is at the bottom after Gimpnet and so. I want those as case insensitive. So, ls should give
bin/
Downloads/

As per advice in IRC, I have:

# cat /etc/locale.conf 
LANG=en_US.UTF-8
LC_COLLATE="C"

And this is the /etc/profile

# cat /etc/profile
# /etc/profile

#Set our umask
umask 022

# Set our default path
PATH="/usr/local/sbin:/usr/local/bin:/usr/bin"
export PATH

# Load profiles from /etc/profile.d
if test -d /etc/profile.d/; then
    for profile in /etc/profile.d/*.sh; do
        test -r "$profile" && . "$profile"
    done
    unset profile
fi

# Source global bash config
if test "$PS1" && test "$BASH" && test -r /etc/bash.bashrc; then
    . /etc/bash.bashrc
fi

# Termcap is outdated, old, and crusty, kill it.
unset TERMCAP

# Man is much better than us at figuring this out
unset MANPATH
[root@roddur rudra]# 

I have found https://bbs.archlinux.org/viewtopic.php?id=34699 thread but I dont have rc.conf (is it depreciated?)

Kindly help me solving this.

Last edited by rudrab (2014-03-15 17:31:14)

Offline

#2 2014-03-15 15:22:30

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: arch lists (like ls, nautilus) is case sensitive

Yes, rc,conf along with the rest of initscripts is deprecated.
The order you get from e.g. 'ls' is governed by collation settings. Change it from C to some other. You can just remove

LC_COLLATE="C"

for start.


When posting configs, code or command output, please use [ code ] tags https://bbs.archlinux.org/help.php#bbcode

like this

It makes the code more readable and - in case of longer listings - more convenient to scroll through.

Offline

#3 2014-03-15 17:34:26

rudrab
Member
Registered: 2014-03-15
Posts: 7

Re: arch lists (like ls, nautilus) is case sensitive

Actually

LC_COLLATE="C"

has no effect for my problem. neither the locale-gen generated it at the time of installation. I put it as suggested in the irc, but as i said, it has no effect and have removed it, as you suggested.

Last edited by rudrab (2014-03-15 17:35:25)

Offline

#4 2014-03-15 17:40:56

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: arch lists (like ls, nautilus) is case sensitive

I know nothing about nautilus, but keeping collation set to en_US.UTF-8, just as the rest of your locale, should work:

$ LC_COLLATE=C ls
1  2  A  B  a  b
$ LC_COLLATE=en_US.UTF-8 ls
1  2  a  A  b  B

Offline

#5 2014-03-15 18:04:45

rudrab
Member
Registered: 2014-03-15
Posts: 7

Re: arch lists (like ls, nautilus) is case sensitive

I am still getting:

 LC_COLLATE=en_US.UTF-8 ls
B  a

Offline

#6 2014-03-15 18:26:21

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: arch lists (like ls, nautilus) is case sensitive

What's the output of

localectl
type -p ls

Offline

#7 2015-01-20 17:00:39

produnis
Member
From: Germany
Registered: 2014-09-29
Posts: 50

Re: arch lists (like ls, nautilus) is case sensitive

I have this issue too

LC_COLLATE=en_US.UTF-8 ls
B  C  a  b

and the command "localectl" is not available...

Offline

#8 2015-01-20 19:46:16

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: arch lists (like ls, nautilus) is case sensitive

produnis wrote:

and the command "localectl" is not available...

What's the output of

uname -a
locale
locale -a

Offline

#9 2015-01-20 21:06:22

produnis
Member
From: Germany
Registered: 2014-09-29
Posts: 50

Re: arch lists (like ls, nautilus) is case sensitive

[22:05:30] produnis@elrond:~$ uname -a
Linux elrond 3.18.2-2-ARCH #1 SMP PREEMPT Fri Jan 9 07:37:51 CET 2015 x86_64 GNU/Linux
[22:05:35] produnis@elrond:~$ locale
LANG=de_DE.utf8
LC_CTYPE="de_DE.utf8"
LC_NUMERIC="de_DE.utf8"
LC_TIME="de_DE.utf8"
LC_COLLATE=C
LC_MONETARY="de_DE.utf8"
LC_MESSAGES="de_DE.utf8"
LC_PAPER="de_DE.utf8"
LC_NAME="de_DE.utf8"
LC_ADDRESS="de_DE.utf8"
LC_TELEPHONE="de_DE.utf8"
LC_MEASUREMENT="de_DE.utf8"
LC_IDENTIFICATION="de_DE.utf8"
LC_ALL=
[22:05:45] produnis@elrond:~$ locale -a
C
POSIX
de_DE
de_DE.iso88591
de_DE.iso885915@euro
de_DE.utf8
de_DE@euro
deutsch
german
[22:05:49] produnis@elrond:~$

Offline

#10 2015-01-20 23:35:51

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: arch lists (like ls, nautilus) is case sensitive

Your collation is C, and you tried to override with a locale you haven't generated. Working as intended. If you don't want C collation, don't set it (perhaps in /etc/locale.conf)?

Offline

#11 2015-01-21 02:59:34

cedeel
Member
From: ~
Registered: 2009-08-25
Posts: 176
Website

Re: arch lists (like ls, nautilus) is case sensitive

It's also not necessary to have "deutsch" or "german" in your /etc/locale.gen file. The various "de_DE" variants should be fine, and if you only use one of them, that should be fine.

Offline

#12 2015-01-21 09:13:32

produnis
Member
From: Germany
Registered: 2014-09-29
Posts: 50

Re: arch lists (like ls, nautilus) is case sensitive

my locale.conf looks like this:

LANG=de_DE.UTF-8
LC_COLLATE=C

So if I understand it correct, I would have to change it into:

LANG=de_DE.UTF-8
LC_COLLATE=de_DE.UTF-8

right? - correct!

EDIT:
forgot to reboot machine....
This way it works!!
THX A LOT!!!!

Last edited by produnis (2015-01-21 12:24:28)

Offline

#13 2015-01-21 12:22:18

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: arch lists (like ls, nautilus) is case sensitive

Mark the thread as solved


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#14 2015-01-21 12:24:00

produnis
Member
From: Germany
Registered: 2014-09-29
Posts: 50

Re: arch lists (like ls, nautilus) is case sensitive

I would,
but I am not the thread-starter ( = user "rudrab")...
I just hopped on as I struggled to solve this issue too

Offline

#15 2015-01-21 15:11:57

alphaniner
Member
From: Ancapistan
Registered: 2010-07-12
Posts: 2,810

Re: arch lists (like ls, nautilus) is case sensitive

produnis wrote:

So if I understand it correct, I would have to change it into:

LANG=de_DE.UTF-8
LC_COLLATE=de_DE.UTF-8

You don't even need to specify LC_COLLATE unless you want it to be different from LANG. So all you really need in /etc/locale.conf is

LANG=de_DE.UTF-8

But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner

Offline

Board footer

Powered by FluxBB