Gentoo Archives: gentoo-user

From: Mark Knecht <markknecht@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] locale issue to clean up
Date: Sun, 07 Dec 2008 21:35:13
Message-Id: 5bdc1c8b0812071335x51af155cn6a497a0d2449d266@mail.gmail.com
1 My Gentoo desktop has had a locale problem for longer than I can
2 remember. I haven't been able to solve it on my own, but it didn't
3 seem too important. More a frustration. I switched my profile to the
4 2008.0 desktop a few days ago. Everything seems to be working but I'm
5 getting more of these locale-ish messages now so I'd like to figure
6 out what I've done wrong.
7
8 Here's one typical message I might see when running emerge --depclean:
9
10 perl: warning: Setting locale failed.
11 perl: warning: Please check that your locale settings:
12 LANGUAGE = (unset),
13 LC_ALL = "en_US",
14 LANG = (unset)
15 are supported and installed on your system.
16 perl: warning: Falling back to the standard locale ("C").
17
18 The line about falling back to the standard locale "C" is pretty
19 standard. I also see this in k3b every time I start the program. As I
20 do a lot of audio work I'd really like to make sure the CDs I burn on
21 this machine will be acceptable to folks/friends/customers. Here's
22 what I see in k3b:
23
24 <SNIP>
25 System locale charset is ANSI_X3.4-1968
26 Your system's locale charset (i.e. the charset used to encode
27 filenames) is set to ANSI_X3.4-1968. It is highly unlikely that this
28 has been done intentionally. Most likely the locale is not set at all.
29 An invalid setting will result in problems when creating data
30 projects.
31 Solution: To properly set the locale charset make sure the LC_*
32 environment variables are set. Normally the distribution setup tools
33 take care of this.
34 <SNIP>
35
36 I don't have a clue what's wrong and the Gentoo pages about locale
37 setup seem to make some assumptions about my understanding of what
38 this does and how it does it that I'm not living up to so I really
39 don't know what to provide. I'll start with this and we'll see how it
40 goes. It seems that possibly I'm supposed to hand edit
41 /etc/env.d/02locale but in my longish history of running Gentoo (as a
42 user type) I don't believe I've ever had to edit that so I'm thinking
43 I must have messed up some other config file somewhere?
44
45 Thanks in advance,
46 Mark
47
48 lightning ~ # cat /etc/locale.gen
49 en_US ISO-8859-1
50 en_US.UTF-8 UTF-8
51 lightning ~ #
52
53 lightning ~ # locale
54 LANG=en_US
55 LC_CTYPE="en_US"
56 LC_NUMERIC="en_US"
57 LC_TIME="en_US"
58 LC_COLLATE="en_US"
59 LC_MONETARY="en_US"
60 LC_MESSAGES="en_US"
61 LC_PAPER="en_US"
62 LC_NAME="en_US"
63 LC_ADDRESS="en_US"
64 LC_TELEPHONE="en_US"
65 LC_MEASUREMENT="en_US"
66 LC_IDENTIFICATION="en_US"
67 LC_ALL=
68 lightning ~ #
69
70 lightning ~ # cat /etc/env.d/02locale
71 LANG=en_US
72 lightning ~ #

Replies

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