You are not logged in.
Pages: 1
Hello,
With the new LC_COLLATE change (http://www.archlinux.org/news/476/) my sort order went crazy. When I looked into it, I came to the following conclusion:
1) If I kept the old way of sorting (LC_COLLATE=C), the file names beginning with Croatian characters were indeed sorting incorrectly
2) The new way ignores leading special characters (including the . in hidden files) when sorting, which messes up the way my brain is conditioned to work
The new sort order is unacceptable for me. I have reverted the behaviour, but I'm left wondering is there a way to get the best of both worlds? Can I somehow instruct the locale "en_US.utf8" not to ignore leading special characters when sorting?
Offline
What is your current (new) LC_COLLATE=?
Offline
What is your current (new) LC_COLLATE=?
After the update it was:
LC_COLLATE="en_US.utf8"
I changed it back to
LC_COLLATE=C
Last edited by vexxor (2009-12-18 10:44:36)
Offline
Why not use the Croatian collation?
Can you tell me how do you look at your files? I use 'ls -Aog -h --group-directories-first --color'; '-group-directories-first' modifies the order.
Offline
Why not use the Croatian collation?
My locale in rc.conf is set to en_US.utf8
I was under the impression that if i changed it to say, Croatian, all my month names, day names, etc. would become their Croatian equivalents, and I didn't want this. The collation was set to "en_US.utf8" throught the upgrade, probably in accordance to my system wide setting.
Can you tell me how do you look at your files? I use 'ls -Aog -h --group-directories-first --color'; '-group-directories-first' modifies the order.
this is my ls alias:
alias ls='ls -lh --group-directories --color=auto'
The problem is that special characters, like for example "_" don't get sorted first anymore.
With LC_COLLATE=C:
_bdir
adir
cdir
With new setting:
adir
_bdir
cdir
This is not limited to directories. I am keeping it the old way because i use prefixes on some dirs, files or symlinks to keep them on top of listings.
Offline
> I was under the impression that if i changed it to say, Croatian (...)
Did you try it? Apart from LC_COLLATE there's a bunch of other options that control the currency etc. Type 'locale' to have a look.
Offline
> Did you try it? Apart from LC_COLLATE there's a bunch of other options that control the currency etc. Type 'locale' to have a look.
Yes i tried after i posted. When I set the whole thing to "hr_HR.utf8", i did indeed get croatian month and day names, and other options you mention. This is not what I really need, so i reverted it.
The LC_COLLATE option seems to function the same when set to "hr_HR.utf8" as it does when it's set to "en_US.utf8", so there's still the original problem with that.
Offline
Did you try 'export LC_ALL=hr_HR.utf8'?
Or maybe you should comment out the LC_COLLATE in your /etc/profile - http://bugs.archlinux.org/task/15250#comment48369
I haven't seen any problem on 2 workstations for nearly 2 month with 'LC_COLLATE="C"' commented in my /etc/profile.
An interesting side effect is that the GNOME Open/Save dialog now sorts the folders correctly regardless of the case (i.e. the smaller case folders were always sorted after the capitalized ones).
Offline
I have similar problems since LC_COLLATE="C" was removed out of /etc/profile: Crazy sort order in konqueror and so on.
I sometimes use a leading "_" to have a second "naming layer" in my directories, so I depend that those are sorted at the beginning or at least together.
Is it traditional english sort order to ignore leading special characters??
1. I am one of those user that have problems with standard localizations. I want English as language only but region Germany and german formats and stuff as default.
2. Where can I set my user locale or change LC_ variables, so that all my applications use it. The system-wide setting is in rc.conf, ok. But is ~/.bashrc not only for bash and things I start from bash? But isn't /etc/profile only for bash, too? And what is with GUI applications like konqueror when I don't start them from bash?
Btw. http://wiki.archlinux.org/index.php/Con … ide_locale seems to be outdated because it talks of LC_COLLATE="C" in /etc/profile.
Offline
Pages: 1