You are not logged in.

#1 2006-09-20 23:34:05

dninja
Member
From: Sheffield, UK
Registered: 2006-04-29
Posts: 374
Website

LC_COLLATE setting for case sensitivity

I've recently got my LC_ALL working so that I get UK English dictionaries working in things like evolution but in doing it commands like ls have lost their case sensitivity.

I think this is down to LC_COLLATE but I've tried setting it to C, en_GB, en_GB.iso88591 and en_GB.utf8 and I've tried unsetting it but nothing seems to work.

What do I need to set to keep UK/GB English but also have collation which considers case sensitivity?

Offline

#2 2006-09-29 16:55:47

dninja
Member
From: Sheffield, UK
Registered: 2006-04-29
Posts: 374
Website

Re: LC_COLLATE setting for case sensitivity

After quite a bit of playing I'll answer my own question.

Setting LC_ALL overrides LC_COLLATE so you can't have LC_COLLATE set at C (case sensitive) and LC_ALL set to something like en_GB (not case sensitive). To get around this, for apps which need LC_ALL setting I've put a script in http://bbs.archlinux.org/viewtopic.php?p=197339#197339 which sets LC_ALL for just that app, leaving LC_COLLATE free to be C in shells but sets LC_ALL when needed.

Offline

#3 2006-09-29 17:04:28

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: LC_COLLATE setting for case sensitivity

I don't think I understand - setting the locale via /etc/rc.conf handles all this stuff for me... it works "out of the box" - how are you changing your locale?

Offline

#4 2006-09-30 16:05:07

sh__
Member
Registered: 2005-07-19
Posts: 272

Re: LC_COLLATE setting for case sensitivity

I think that you should set the value of LANG and LC_CTYPE instead of LC_ALL. LANG and LC_CTYPE don't override LC_COLLATE.

As phrakture said, setting LOCALE in /etc/rc.conf handles things automatically in most cases. The only exception I can come up with is if you want to use different LANG and LC_CTYPE, but that shouldn't be necessary with utf-8 locales.

Offline

Board footer

Powered by FluxBB