On 13/5/2011, at 8:27pm, Mick wrote:
> ...
> Here's mine if you want to compare with my previously sent output:
> 
> $ cat /etc/env.d/02locale 
> LANG="en_GB.UTF-8"
> LC_CTYPE="en_GB.UTF-8"
> LC_NUMERIC="en_GB.UTF-8"
> LC_TIME="en_GB.UTF-8"
> LC_COLLATE="C"
> LC_MONETARY="en_GB.UTF-8"
> LC_MESSAGES="en_GB.UTF-8"
> LC_PAPER="en_GB.UTF-8"
> LC_NAME="en_GB.UTF-8"
> LC_ADDRESS="en_GB.UTF-8"
> LC_TELEPHONE="en_GB.UTF-8"
> LC_MEASUREMENT="en_GB.UTF-8"
> LC_IDENTIFICATION="en_GB.UTF-8"

If you have LANG set, then there's no need to set any of the others to the same 
locale.

If you set LC_TIME="POSIX" then am / pm will display correctly. 

I.E.:

$ cat /etc/env.d/02locale 
LANG="en_GB.UTF-8"
LC_TIME="POSIX"
$  

The necessity for this is a glibc bug:
http://sourceware.org/bugzilla/show_bug.cgi?id=3768
This does, however, show the value of setting LANG over LC_ALL (it being 
impossible, as discussed, to override the latter).

Stroller.


Reply via email to