You are not logged in.
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
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
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
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
I am still getting:
LC_COLLATE=en_US.UTF-8 ls
B a
Offline
What's the output of
localectl
type -p ls
Offline
I have this issue too
LC_COLLATE=en_US.UTF-8 ls
B C a b
and the command "localectl" is not available...
Offline
and the command "localectl" is not available...
What's the output of
uname -a
locale
locale -a
Offline
[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
Offline
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
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
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
I would,
but I am not the thread-starter ( = user "rudrab")...
I just hopped on as I struggled to solve this issue too
Offline
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