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: Sun, 07 Dec 2008 22:10:32
Message-Id: 5bdc1c8b0812071410j690b0e10o5337ddcfb2cf6103@mail.gmail.com
In Reply to: Re: [gentoo-user] locale issue to clean up by Dale
1 On Sun, Dec 7, 2008 at 1:55 PM, Dale <rdalek1967@×××××.com> wrote:
2 > Mark Knecht wrote:
3 >> My Gentoo desktop has had a locale problem for longer than I can
4 >> remember. I haven't been able to solve it on my own, but it didn't
5 >> seem too important. More a frustration. I switched my profile to the
6 >> 2008.0 desktop a few days ago. Everything seems to be working but I'm
7 >> getting more of these locale-ish messages now so I'd like to figure
8 >> out what I've done wrong.
9 >>
10 >> Here's one typical message I might see when running emerge --depclean:
11 >>
12 >> perl: warning: Setting locale failed.
13 >> perl: warning: Please check that your locale settings:
14 >> LANGUAGE = (unset),
15 >> LC_ALL = "en_US",
16 >> LANG = (unset)
17 >> are supported and installed on your system.
18 >> perl: warning: Falling back to the standard locale ("C").
19 >>
20 >> The line about falling back to the standard locale "C" is pretty
21 >> standard. I also see this in k3b every time I start the program. As I
22 >> do a lot of audio work I'd really like to make sure the CDs I burn on
23 >> this machine will be acceptable to folks/friends/customers. Here's
24 >> what I see in k3b:
25 >>
26 >> <SNIP>
27 >> System locale charset is ANSI_X3.4-1968
28 >> Your system's locale charset (i.e. the charset used to encode
29 >> filenames) is set to ANSI_X3.4-1968. It is highly unlikely that this
30 >> has been done intentionally. Most likely the locale is not set at all.
31 >> An invalid setting will result in problems when creating data
32 >> projects.
33 >> Solution: To properly set the locale charset make sure the LC_*
34 >> environment variables are set. Normally the distribution setup tools
35 >> take care of this.
36 >> <SNIP>
37 >>
38 >> I don't have a clue what's wrong and the Gentoo pages about locale
39 >> setup seem to make some assumptions about my understanding of what
40 >> this does and how it does it that I'm not living up to so I really
41 >> don't know what to provide. I'll start with this and we'll see how it
42 >> goes. It seems that possibly I'm supposed to hand edit
43 >> /etc/env.d/02locale but in my longish history of running Gentoo (as a
44 >> user type) I don't believe I've ever had to edit that so I'm thinking
45 >> I must have messed up some other config file somewhere?
46 >>
47 >> Thanks in advance,
48 >> Mark
49 >>
50 >> lightning ~ # cat /etc/locale.gen
51 >> en_US ISO-8859-1
52 >> en_US.UTF-8 UTF-8
53 >> lightning ~ #
54 >>
55 >> lightning ~ # locale
56 >> LANG=en_US
57 >> LC_CTYPE="en_US"
58 >> LC_NUMERIC="en_US"
59 >> LC_TIME="en_US"
60 >> LC_COLLATE="en_US"
61 >> LC_MONETARY="en_US"
62 >> LC_MESSAGES="en_US"
63 >> LC_PAPER="en_US"
64 >> LC_NAME="en_US"
65 >> LC_ADDRESS="en_US"
66 >> LC_TELEPHONE="en_US"
67 >> LC_MEASUREMENT="en_US"
68 >> LC_IDENTIFICATION="en_US"
69 >> LC_ALL=
70 >> lightning ~ #
71 >>
72 >> lightning ~ # cat /etc/env.d/02locale
73 >> LANG=en_US
74 >> lightning ~ #
75 >>
76 >>
77 >>
78 >
79 > Check in your /etc/make.conf file and see if you have !some! of this:
80 >
81 > INPUT_DEVICES="keyboard mouse"
82 > VIDEO_CARDS="nvidia"
83 > LINGUAS="en"
84 > LANG="en_US"
85 > LC_ALL="en_US.utf8"
86 > SANE_BACKENDS="hp"
87 > NUT_DRIVERS="cyberpower"
88 > ALSA_CARDS="emu10k1"
89 > CAMERAS="canon"
90 > LCD_DEVICES=""
91 > APACHE2_MODULES=""
92 >
93 > Keep in mind, your settings may vary from mine but some may need to be
94 > just like mine. Also, if you do a emerge -pv <package-name>, it will
95 > show what options are on and also what is available to use if nothing is
96 > set. Not all packages will use those settings so don't be concerned if
97 > it doesn't show them on those.
98 >
99 > Hope that helps.
100 >
101 > Dale
102 >
103 > :-) :-)
104
105 Dale,
106 Thanks. My list seems considerable too small (and possibly
107 incorrect) vs yours. I suspect it should be identical. California,
108 only speak English.
109
110 CFLAGS="-march=k8 -O2 -pipe"
111 CHOST="x86_64-pc-linux-gnu"
112 CXXFLAGS="${CFLAGS}"
113 MAKEOPTS="-j2"
114 FEATURES="parallel-fetch distclean ccache"
115 SYNC="rsync://rsync.gentoo.org/gentoo-portage"
116 USE="realmedia quicktime dri radeon mmx mmxext sse sse2 3dnow 3dnowext
117 gnome kde -esd -arts ladspa nptl nptlonly audiofile gimp gimpprint
118 ppds usb alsa cdr dvd dvdr dvdread jack jack-tmpfs fluidsynth tcltk
119 sndfile v4l v4l2 mysql flac xscreensaver -samba i8x0 mythtv apache2
120 -lirc mjpeg xvid xine cjk unicode vorbis ogg truetype java -eds -dts
121 a52"
122 ACCEPT_KEYWORDS="amd64"
123 ALSA_CARDS="hdsp9652 hdsp"
124 VIDEO_CARDS="radeon vesa"
125 LINGUAS="en en_US"
126 PORTAGE_NICENESS=19
127 EMERGE_DEFAULT_OPTS="--with-bdeps y"
128 source /usr/portage/local/layman/make.conf
129
130 Looking above I don't have LANG or LC_ALL entries and the LINGUAS is
131 suspect. If I was to convert them to your settings do I then need to
132 rebuild any apps that use them?
133
134 I tried puting the emerge -epv world results into a file and greping
135 the file. Does this list look about right? It does contain portage and
136 k3b which are my most common offenders so I think I'm probably on the
137 right track.
138
139 Thanks!
140
141 -Mark
142
143
144 lightning ~ # emerge -epv world >EMERGE.WORLD
145 lightning ~ # cat EMERGE.WORLD | grep LINGUAS
146 [ebuild R ] sys-apps/portage-2.2_rc16 USE="-build -doc -epydoc
147 (-selinux)" LINGUAS="-pl" 0 kB [0]
148 [ebuild R ] sys-apps/man-pages-3.14 USE="nls" LINGUAS="-cs -da
149 -de -es -fr -it -ja -nl -pl -ro -ru -zh_CN" 0 kB [0]
150 [ebuild R ] net-misc/neon-0.28.3 USE="nls ssl zlib -doc -expat
151 -gnutls -kerberos -pkcs11 -socks5" LINGUAS="-cs -de -fr -ja -nn -pl
152 -ru -tr -zh_CN" 0 kB [0]
153 [ebuild R ] app-portage/esearch-0.7.1 LINGUAS="-it" 0 kB [?=>0]
154 [ebuild R ] app-text/xpdf-3.02-r1 USE="-nodrm" LINGUAS="-ar -el
155 -he -ja -ko -la -ru -th -tr -zh_CN -zh_TW" 0 kB [0]
156 [ebuild R ] www-client/mozilla-firefox-bin-2.0.0.18
157 USE="-restrict-javascript" LINGUAS="en en_US -af -ar -be -bg -ca -cs
158 -da -de -el -en_GB -es -es_AR -es_ES -eu -fi -fr -fy -fy_NL -ga -ga_IE
159 -gu -gu_IN -he -hu -it -ja -ka -ko -ku -lt -mk -mn -nb -nb_NO -nl -nn
160 -nn_NO -pa -pa_IN -pl -pt -pt_BR -pt_PT -ro -ru -sk -sl -sv -sv_SE -tr
161 -uk -zh -zh_CN -zh_TW" 0 kB [0]
162 [ebuild R ] www-client/mozilla-firefox-2.0.0.18 USE="gnome java
163 -bindist -debug -filepicker -iceweasel -ipv6 -mozdevelop -moznopango
164 -restrict-javascript -xforms -xinerama -xprint" LINGUAS="en en_US -af
165 -ar -be -bg -ca -cs -da -de -el -en_GB -es -es_AR -es_ES -eu -fi -fr
166 -fy -fy_NL -ga -ga_IE -gu -gu_IN -he -hu -it -ja -ka -ko -ku -lt -mk
167 -mn -nb -nb_NO -nl -nn -nn_NO -pa -pa_IN -pl -pt -pt_BR -pt_PT -ro -ru
168 -sk -sl -sv -sv_SE -tr -uk -zh -zh_CN -zh_TW" 0 kB [0]
169 [ebuild R ] net-www/mplayerplug-in-3.50 USE="firefox (multilib)
170 nls quicktime realmedia -divx -gmedia -gtk -seamonkey -wmp -xulrunner"
171 LINGUAS="en_US -cs -da -de -es -fr -hu -it -ja -ko -nb -nl -pl -pt_BR
172 -ru -se -sk -tr -wa -zh_CN" 0 kB [0]
173 [ebuild R ] net-print/cups-1.3.8-r2 USE="X acl dbus java jpeg
174 ldap pam perl png ppds python samba ssl tiff -avahi -gnutls -kerberos
175 -php -slp -static -xinetd -zeroconf" LINGUAS="en -de -es -et -fr -he
176 -id -it -ja -pl -sv -zh_TW" 0 kB [0]
177 [ebuild R ] app-office/openoffice-bin-3.0.0 USE="gnome java kde"
178 LINGUAS="en -af -ar -as_IN -be_BY -bg -br -bs -ca -cs -da -de -dz -el
179 -en_GB -en_ZA -es -et -fi -fr -ga -gu -he -hi_IN -hr -hu -it -ja -ka
180 -km -ko -lt -mk -ml_IN -mr_IN -nb -ne -nl -nn -nr -ns -or_IN -pa_IN
181 -pl -pt -pt_BR -rw -sh -sk -sl -sr -ss -st -sv -sw_TZ -ta -te_IN -tg
182 -th -ti_ER -tr -ts -uk -ur_IN -ve -vi -xh -zh_CN -zh_TW -zu" 0 kB [0]
183 [ebuild R ] app-cdr/k3b-1.0.4 USE="alsa dvdr dvdread encode
184 ffmpeg flac hal mp3 sndfile vorbis -arts -css -debug -emovix -musepack
185 -musicbrainz -vcd -xinerama" LINGUAS="-af -ar -bg -br -bs -ca -cs -cy
186 -da -de -el -en_GB -es -et -eu -fa -fi -fr -ga -gl -he -hi -hu -is -it
187 -ja -ka -lt -mk -ms -nb -nds -nl -nn -pa -pl -pt -pt_BR -ru -rw -se
188 -sk -sr -sr@Latn -sv -ta -tr -uk -uz -zh_CN -zh_TW" 0 kB [0]
189 lightning ~ # cat EMERGE.WORLD | grep LANG
190 lightning ~ # cat EMERGE.WORLD | grep LC
191 lightning ~ #

Replies

Subject Author
Re: [gentoo-user] locale issue to clean up Dale <rdalek1967@×××××.com>
Re: [gentoo-user] locale issue to clean up Mike Edenfield <kutulu@××××××.org>