Gentoo Archives: gentoo-amd64

From: Mark Knecht <markknecht@×××××.com>
To: gentoo-amd64@l.g.o
Subject: Re: [gentoo-amd64] locales questions
Date: Mon, 04 Dec 2006 19:36:37
Message-Id: 5bdc1c8b0612041133w192397cega270af3bcc74afe4@mail.gmail.com
In Reply to: Re: [gentoo-amd64] locales questions by "Bo Ørsted Andresen"
1 On 12/4/06, Bo Ørsted Andresen <bo.andresen@××××.dk> wrote:
2 > On Monday 04 December 2006 19:30, Mark Knecht wrote:
3 > > I don't understand locales, or not really. I get that they say
4 > > something about where the machine is running and what character
5 > > set/sets the machine should use, but that's as far as I go with it.
6 > > It's never been much of a problem.
7 > [SNIP]
8 > > Solution: To properly set the locale charset make sure the LC_*
9 > > environment variables are set. Normally the distribution setup tools
10 > > take care of this.
11 > >
12 > > I'm going back looking at the Gentoo Quick Install Guide. It talks
13 > > about locales.build and locales.gen for recent version of glibc.
14 > > Section 2.37 at
15 > [SNIP]
16 >
17 > It's properly covered in the Gentoo Localization Guide [1]. You need to
18 > move/convert your locales.build to a locale.gen, run `locale-gen` and make
19 > sure it doesn't generate any errors and set LANG in /etc/env.d/02locale...
20 >
21 > If you need help you will have to post the contents of locale.gen and the
22 > output of `locale-gen`.
23 >
24 > [1] http://www.gentoo.org/doc/en/guide-localization.xml
25 >
26 > --
27 > Bo Andresen
28
29 Hi Bo,
30 First, thanks in advance. I really appreciate all your help. I
31 think I'll ask a few questions as I go along, if that's OK. Thanks
32 again.
33
34 Reading the localization and quick install guides I've become a bit
35 more confused. The localization guide says the LC_* settings are done
36 in /etc/env.d/02locale but this doesn't exist here, not even after
37 running locale-gen:
38
39 lightning etc # ls /etc/env.d/
40 00basic 10libx11 50gconf
41 75emul-linux-x86-compat
42 02distcc 10xkeyboard-config 50glib2 90games
43 03opengl 15openmotif-2.2 50gtk2 99fltk-1.1
44 04multilib 20java 50ncurses
45 99gentoolkit-env
46 05binutils 20java-config 50qtdir3 99libstdc++
47 05compiler 30java-finalclasspath 60gstreamer-0.10 binutils
48 05gcc 45emul-linux-x86-qtlibs 60gstreamer-0.8 gcc
49 05portage.envd 45kdepaths-3.5 60ladspa java
50 08nspr 45qt3 70less
51 08nss 50emul-linux-x86-gtklibs 75emul-linux-x86-base
52 lightning etc #
53
54 The current contents of locales.build are shown here. Seems fairly
55 generic but what do I know? ;-)
56
57 lightning ~ # cat /etc/locales.build
58 # This file names the list of locales to be built when glibc is installed.
59 # The format is <locale>/<charmap>, where <locale> is a locale from the
60 # /usr/share/i18n/locales directory, and <charmap> is name of one of the files
61 # in /usr/share/i18n/charmaps/. All blank lines and lines starting with # are
62 # ignored. Here is an example:
63 # en_US/ISO-8859-1
64
65 en_US/ISO-8859-1
66 en_US.UTF-8/UTF-8
67 lightning ~ #
68
69 I ran locale-gen. No error messages:
70
71 lightning ~ # locale-gen
72 * You should upgrade your /etc/locales.build to /etc/locale.gen
73 * and then remove /etc/locales.build when you're done.
74
75 * Automatically importing locales from /etc/locales.build ...
76 * You really should do this yourself ...
77
78 * Generating 2 locales (this might take a while) with 1 jobs
79 * (1/2) Generating en_US.ISO-8859-1 ... [ ok ]
80 * (2/2) Generating en_US.UTF-8 ... [ ok ]
81 * Generation complete
82 lightning ~ #
83
84 Unfortunately there is no locale.gen file generated:
85
86 lightning etc # ls -la /etc/locale.gen
87 ls: cannot access /etc/locale.gen: No such file or directory
88 lightning etc #
89
90 lightning etc # updatedb
91 lightning etc # slocate locale.gen
92 /usr/share/man/man5/locale.gen.5.gz
93 lightning etc #
94
95 locale-gen seems to read locales.build, I think:
96
97 lightning etc # locale-gen -l
98 en_US.ISO-8859-1
99 en_US.UTF-8
100 lightning etc #
101
102 So far it seems like this isn't working for me. I'll wait for some
103 feedback and keep reading.
104
105 Thanks,
106 Mark
107
108 --
109 gentoo-amd64@g.o mailing list

Replies

Subject Author
Re: [gentoo-amd64] locales questions "Bo Ørsted Andresen" <bo.andresen@××××.dk>