Re: [gentoo-user] Re: LC_ locale settings for UK / GB.

2009-07-11 Thread Stroller


On 11 Jul 2009, at 19:35, walt wrote:


On 07/10/2009 08:49 PM, ABCD wrote:

...
Because I'm seeing some strange things in this thread, let me  
elucidate

as to what the various LANG/LC_* variables do:

LANG
sets the default for LC_*, if unset, defaults to C

LC_CTYPE [charset]
LC_NUMERIC [number format]
LC_TIME [time format]
LC_COLLATE [sort order]
LC_MONETARY [money format]
LC_MESSAGES [message language]
LC_PAPER [paper size]
LC_NAME [given/family name format]
LC_ADDRESS [mailing address format]
LC_TELEPHONE [country code, etc.]
LC_MEASUREMENT [US customary, SI, etc.]
LC_IDENTIFICATION [???]
Used as their names suggest, for the various things that can be
done with locales.  Default to $LANG, if $LANG is unset, defaults
to C.

LC_ALL
Override for LC_*.  If LC_ALL is set, then LC_* is ignored, and  
the
value of LC_ALL is used for everything. *Do not* set this in  
env.d

unless you know exactly what you are doing.  (Setting LC_ALL=C to
disable all locale settings, for instance).


Thanks for the clarification.  The only reason I can think of for  
*not*

setting LC_ALL is that some users on a multi-user system might want to
use a different language. Am I missing something else important?


I'm reading this as to *only* set LANG instead. I'm assuming there are  
occasions upon which a single program or package (at installation  
time, or perhaps in a run script) may wish to over-ride only some of  
the LC_* variables.


IE:

On 11 Jul 2009, at 00:02, Peter Ruskin wrote:

This is what my 02locale file says:
LANG=en_GB
LC_COLLATE=POSIX
LC_CTYPE=POSIX
LC_ALL=en_GB


The last 3 lines should be removed?

If I do so:
$ cat  /etc/env.d/02locale
LANG=en_GB
$

k3b gives no errors - in fact I get a No problems found in system  
configuration pop-up instead - on startup.


Stroller.




Re: [gentoo-user] Re: LC_ locale settings for UK / GB.

2009-07-10 Thread Stroller


On 11 Jul 2009, at 00:05, walt wrote:

On 07/10/2009 02:48 PM, Stroller wrote:
...



Googling LC_* environment variables turns up this doc:
http://www.gentoo.org/doc/en/guide-localization.xml#doc_chap3
...

Unless you have some very arcane lanuage needs you can just set the
value of LC_ALL instead of worrying about nine different ones.


FWIW the linked Gentoo Linux Localization Guide specifically warns  
against this:


Warning: Using LC_ALL is strongly discouraged as it can't be  
overridden later on. Please use it only when testing and never set it  
in a startup file.


Stroller.