1 |
On Sat, 26 Jun 2010 13:40:01 +0200, Mick wrote about Re: [gentoo-user] |
2 |
Questions regarding the usage of multiple locales: |
3 |
|
4 |
[snip] |
5 |
>Hmm... I've added all this in my /etc/env.d/02locale: |
6 |
> |
7 |
>LANG="en_GB.UTF-8" |
8 |
>LC_CTYPE="en_GB.UTF-8" |
9 |
>LC_NUMERIC="en_GB.UTF-8" |
10 |
>LC_TIME="en_GB.UTF-8" |
11 |
>LC_COLLATE="C" |
12 |
>LC_MONETARY="en_GB.UTF-8" |
13 |
>LC_MESSAGES="en_GB.UTF-8" |
14 |
>LC_PAPER="en_GB.UTF-8" |
15 |
>LC_NAME="en_GB.UTF-8" |
16 |
>LC_ADDRESS="en_GB.UTF-8" |
17 |
>LC_TELEPHONE="en_GB.UTF-8" |
18 |
>LC_MEASUREMENT="en_GB.UTF-8" |
19 |
>LC_IDENTIFICATION="en_GB.UTF-8" |
20 |
|
21 |
Did you run env-update afterwards? |
22 |
|
23 |
I ditched all those /etc/env.d settings for locale, and put mine |
24 |
in /etc/profile.d/local.sh as follows: |
25 |
|
26 |
<---------><---------><---------><---------><---------><---------> |
27 |
# Temporary files go to the RAMDisk. |
28 |
export TMPDIR='/tmp' |
29 |
|
30 |
# Define our local squid proxy. |
31 |
export http_proxy='http://localhost:8080' |
32 |
export ftp_proxy='http://localhost:8080' |
33 |
export RSYNC_PROXY='localhost:8080' |
34 |
|
35 |
# The OpenSSL random seed lives here: |
36 |
export RANDFILE='/.rnd' |
37 |
|
38 |
# Set the zsh FTP commands to use passive mode |
39 |
export ZFTP_PREFS='P' |
40 |
|
41 |
# If the user has a private bin directory, prepend it to the PATH. |
42 |
if [ -d "$HOME/bin" ]; then |
43 |
export PATH="$HOME/bin:$PATH" |
44 |
fi |
45 |
|
46 |
# Set a sensible locale, if possible. |
47 |
if [ -d '/usr/share/locale/en_GB' ]; then |
48 |
export LC_ALL='en_GB.utf8' |
49 |
export LANG='en_GB.utf8' |
50 |
export LANGUAGE='en_GB.utf8' |
51 |
else |
52 |
export LC_ALL='C' |
53 |
unset LANG LANGUAGE |
54 |
fi |
55 |
<---------><---------><---------><---------><---------><---------> |
56 |
|
57 |
This gives me a single point of maintenance for several system |
58 |
customizations. Also, it allows me to use conditional logic to set |
59 |
sensible values. |
60 |
-- |
61 |
Regards, |
62 |
|
63 |
Dave [RLU #314465] |
64 |
====================================================================== |
65 |
dwnoon@××××××××.com (David W Noon) |
66 |
====================================================================== |