Gentoo Archives: gentoo-user

From: Mark Knecht <markknecht@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] locale issue to clean up
Date: Mon, 08 Dec 2008 02:58:49
Message-Id: 5bdc1c8b0812071858p6141763ajfd254d68a54cea78@mail.gmail.com
In Reply to: Re: [gentoo-user] locale issue to clean up by Willie Wong
1 On Sun, Dec 7, 2008 at 5:19 PM, Willie Wong <wwong@×××××××××.edu> wrote:
2 > On Sun, Dec 07, 2008 at 04:42:53PM -0800, Penguin Lover Mark Knecht squawked:
3 >> Thanks for joining in. I have mucho craziness in these directories!
4 >> /usr/share/locale has way too much stuff, but it doesn't have what I
5 >> want. It's missing en_US.utf8 and en_US.ISO8859-1. Also, all of what I
6 >> think are the font files are in a directory called charmaps, not
7 >> charsets, like yours: (This is an AMD64 machine so maybe that's part
8 >> of the difference?)
9 >>
10 >> lightning ~ # ls /usr/share/i18n
11 >> SUPPORTED charmaps locales
12 >> lightning ~ #
13 >>
14 >> Before I do something stupid, can I erase all this /usr/share stuff
15 >> by hand, then re-emerge glibc, rerun locale-gen to get the right
16 >> stuff. I suspect that since I had weird settings in make.conf, now
17 >> fixed with Dale's help, that now if I re-emerge glibc maybe I'll get
18 >> the right stuff?
19 >>
20 >
21 > My apologies for jumping in kind of late in this thread, and I am not
22 > sure if you have answered this question already, but what do you have
23 > as the content of /etc/locale.gen ? I ask because this is useful
24 > prior to you issuing emerge glibc again.
25 >
26 > Best,
27 >
28 > W
29
30 Always room for another voice. Thanks for joining.
31
32 Current contents of /etc/locale.gen were copied from the Gentoo Base
33 System install instructions at the bottom of the page:
34
35 http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=6
36
37 lightning ~ # cat /etc/locale.gen
38 en_US ISO-8859-1
39 en_US.UTF-8 UTF-8
40 lightning ~ #
41
42 When I run locale-gen the results look at least reasonable to me:
43
44 lightning ~ # locale-gen
45 * Generating 2 locales (this might take a while) with 1 jobs
46 * (1/2) Generating en_US.ISO-8859-1 ...
47 [ ok ]
48 * (2/2) Generating en_US.UTF-8 ...
49 [ ok ]
50 * Generation complete
51 lightning ~ #
52
53 man locale-gen says it puts everything in /usr/lib/locale which has
54 little on this machine:
55
56 lightning ~ # ls -al /usr/lib/locale/
57 total 1504
58 drwxr-xr-x 2 root root 4096 2008-12-07 18:42 .
59 drwxr-xr-x 115 root root 65536 2008-12-07 14:48 ..
60 -rw-r--r-- 1 root root 0 2008-12-02 15:06 .keep_sys-libs_glibc-2.2
61 -rw-r--r-- 1 root root 1520480 2008-12-07 18:42 locale-archive
62 lightning ~ #
63
64 Similar stuff in /usr/lib32/locale and /usr/lib64/locale. It seems
65 that these are the files modified by locale-gen:
66
67 lightning ~ # ls -al /usr/lib/locale/locale-archive
68 -rw-r--r-- 1 root root 1520480 2008-12-07 18:42 /usr/lib/locale/locale-archive
69 lightning ~ # date
70 Sun Dec 7 18:53:33 PST 2008
71 lightning ~ # locale-gen
72 * Generating 2 locales (this might take a while) with 1 jobs
73 * (1/2) Generating en_US.ISO-8859-1 ...
74 [ ok ]
75 * (2/2) Generating en_US.UTF-8 ...
76 [ ok ]
77 * Generation complete
78 lightning ~ # ls -al /usr/lib/locale/locale-archive
79 -rw-r--r-- 1 root root 1520480 2008-12-07 18:53 /usr/lib/locale/locale-archive
80 lightning ~ #
81
82 The date is updated after running locale-gen.
83
84 I guess what I have left to decide is what to do with
85 /etc/env.d/02locale. smallnow suggests putting everything in there it
86 seems. I suspect others here have working systems but nothing in those
87 files. I've never modified that file in 8 years of running Gentoo. I
88 suppose I probably missed the memo! I tried to solve this problem a
89 couple of months ago and heard something similar on the gentoo-64 list
90 but didn't get far enough to want to do it. Maybe now's the time?
91
92 Thanks,
93 Mark

Replies

Subject Author
Re: [gentoo-user] locale issue to clean up Mick <michaelkintzios@×××××.com>