Gentoo Archives: gentoo-user

From: Mick <michaelkintzios@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Questions regarding the usage of multiple locales
Date: Sat, 26 Jun 2010 10:49:52
Message-Id: 201006261149.20507.michaelkintzios@gmail.com
In Reply to: Re: [gentoo-user] Questions regarding the usage of multiple locales by Mick
1 On Saturday 26 June 2010 11:40:14 Mick wrote:
2 > On Tuesday 22 June 2010 17:14:13 Christopher Swift wrote:
3 > > Ar Maw, 2010-06-22 am 14:38 +0100, ysgrifennodd Mick:
4 > > > I'm also interested in this - although my question is probably simpler:
5 > > >
6 > > > I would like to use en_GB but I do not undestand why running 'locale'
7 > > > as a plain user shows:
8 > > >
9 > > > $ locale
10 > > > LANG=en_US.UTF-8
11 > > > LC_CTYPE="en_US.UTF-8"
12 > > > LC_NUMERIC="en_US.UTF-8"
13 > > > LC_TIME="en_US.UTF-8"
14 > > > LC_COLLATE="en_US.UTF-8"
15 > > > LC_MONETARY="en_US.UTF-8"
16 > > > LC_MESSAGES="en_US.UTF-8"
17 > > > LC_PAPER="en_US.UTF-8"
18 > > > LC_NAME="en_US.UTF-8"
19 > > > LC_ADDRESS="en_US.UTF-8"
20 > > > LC_TELEPHONE="en_US.UTF-8"
21 > > > LC_MEASUREMENT="en_US.UTF-8"
22 > > > LC_IDENTIFICATION="en_US.UTF-8"
23 > > > LC_ALL=en_US.UTF-8
24 > > >
25 > > > why when running it as root:
26 > > >
27 > > > # locale
28 > > > LANG=
29 > > > LC_CTYPE="POSIX"
30 > > > LC_NUMERIC="POSIX"
31 > > > LC_TIME="POSIX"
32 > > > LC_COLLATE="POSIX"
33 > > > LC_MONETARY="POSIX"
34 > > > LC_MESSAGES="POSIX"
35 > > > LC_PAPER="POSIX"
36 > > > LC_NAME="POSIX"
37 > > > LC_ADDRESS="POSIX"
38 > > > LC_TELEPHONE="POSIX"
39 > > > LC_MEASUREMENT="POSIX"
40 > > > LC_IDENTIFICATION="POSIX"
41 > > > LC_ALL=
42 > > >
43 > > >
44 > > > I do not have set a /etc/env.d/02locale yet, so where is my plain user
45 > > > locale being read from?
46 > >
47 > > Your plain user locale is usually read from ~/.bashrc, this can be set
48 > > to en_GB by having the following lines:
49 > > export LANG="en_GB.UTF-8"
50 > > export LC_COLLATE="C"
51 >
52 > I have not exported any locale in my ~/.bashrc, so should a plain user
53 > locale reflect what's in /etc/env.d/02locale?
54 >
55 > I added /etc/env.d/02locale as you show above, but my plain user still
56 > shows all settings as "en_US.UTF-8" ... where is this US setting read
57 > from?
58
59 Oops! This is more complicated that I thought ...
60
61 If, always as a plain user, I use aterm then /etc/env.d/02locale is read and
62 LANG is en_GB.UTF-8. However, if I use xterm it is still LANG=en_US.UTF-8
63 --
64 Regards,
65 Mick

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-user] Questions regarding the usage of multiple locales Alex Schuster <wonko@×××××××××.org>