On Sun, Dec 7, 2008 at 5:19 PM, Willie Wong <[EMAIL PROTECTED]> wrote:
> On Sun, Dec 07, 2008 at 04:42:53PM -0800, Penguin Lover Mark Knecht squawked:
>>    Thanks for joining in. I have mucho craziness in these directories!
>> /usr/share/locale has way too much stuff, but it doesn't have what I
>> want. It's missing en_US.utf8 and en_US.ISO8859-1. Also, all of what I
>> think are the font files are in a directory called charmaps, not
>> charsets, like yours: (This is an AMD64 machine so maybe that's part
>> of the difference?)
>>
>> lightning ~ # ls /usr/share/i18n
>> SUPPORTED  charmaps  locales
>> lightning ~ #
>>
>>    Before I do something stupid, can I erase all this /usr/share stuff
>> by hand, then re-emerge glibc, rerun locale-gen to get the right
>> stuff. I suspect that since I had weird settings in make.conf, now
>> fixed with Dale's help, that now if I re-emerge glibc maybe I'll get
>> the right stuff?
>>
>
> My apologies for jumping in kind of late in this thread, and I am not
> sure if you have answered this question already, but what do you have
> as the content of /etc/locale.gen ?  I ask because this is useful
> prior to you issuing emerge glibc again.
>
> Best,
>
> W

Always room for another voice. Thanks for joining.

Current contents of /etc/locale.gen were copied from the Gentoo Base
System install instructions at the bottom of the page:

http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=6

lightning ~ # cat /etc/locale.gen
en_US ISO-8859-1
en_US.UTF-8 UTF-8
lightning ~ #

When I run locale-gen the results look at least reasonable to me:

lightning ~ # locale-gen
 * Generating 2 locales (this might take a while) with 1 jobs
 *  (1/2) Generating en_US.ISO-8859-1 ...
                          [ ok ]
 *  (2/2) Generating en_US.UTF-8 ...
                          [ ok ]
 * Generation complete
lightning ~ #

man locale-gen says it puts everything in /usr/lib/locale which has
little on this machine:

lightning ~ # ls -al /usr/lib/locale/
total 1504
drwxr-xr-x   2 root root    4096 2008-12-07 18:42 .
drwxr-xr-x 115 root root   65536 2008-12-07 14:48 ..
-rw-r--r--   1 root root       0 2008-12-02 15:06 .keep_sys-libs_glibc-2.2
-rw-r--r--   1 root root 1520480 2008-12-07 18:42 locale-archive
lightning ~ #

Similar stuff in /usr/lib32/locale and /usr/lib64/locale. It seems
that these are the files modified by locale-gen:

lightning ~ # ls -al  /usr/lib/locale/locale-archive
-rw-r--r-- 1 root root 1520480 2008-12-07 18:42 /usr/lib/locale/locale-archive
lightning ~ # date
Sun Dec  7 18:53:33 PST 2008
lightning ~ # locale-gen
 * Generating 2 locales (this might take a while) with 1 jobs
 *  (1/2) Generating en_US.ISO-8859-1 ...
                          [ ok ]
 *  (2/2) Generating en_US.UTF-8 ...
                          [ ok ]
 * Generation complete
lightning ~ # ls -al  /usr/lib/locale/locale-archive
-rw-r--r-- 1 root root 1520480 2008-12-07 18:53 /usr/lib/locale/locale-archive
lightning ~ #

The date is updated after running locale-gen.

   I guess what I have left to decide is what to do with
/etc/env.d/02locale. smallnow suggests putting everything in there it
seems. I suspect others here have working systems but nothing in those
files. I've never modified that file in 8 years of running Gentoo. I
suppose I probably missed the memo! I tried to solve this problem a
couple of months ago and heard something similar on the gentoo-64 list
but didn't get far enough to want to do it. Maybe now's the time?

Thanks,
Mark

Reply via email to