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

Attachments

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

Replies

Subject Author
Re: [gentoo-user] Questions regarding the usage of multiple locales Mick <michaelkintzios@×××××.com>