1 |
Mark Knecht wrote: |
2 |
> My Gentoo desktop has had a locale problem for longer than I can |
3 |
> remember. I haven't been able to solve it on my own, but it didn't |
4 |
> seem too important. More a frustration. I switched my profile to the |
5 |
> 2008.0 desktop a few days ago. Everything seems to be working but I'm |
6 |
> getting more of these locale-ish messages now so I'd like to figure |
7 |
> out what I've done wrong. |
8 |
> |
9 |
> Here's one typical message I might see when running emerge --depclean: |
10 |
> |
11 |
> perl: warning: Setting locale failed. |
12 |
> perl: warning: Please check that your locale settings: |
13 |
> LANGUAGE = (unset), |
14 |
> LC_ALL = "en_US", |
15 |
> LANG = (unset) |
16 |
> are supported and installed on your system. |
17 |
> perl: warning: Falling back to the standard locale ("C"). |
18 |
> |
19 |
> The line about falling back to the standard locale "C" is pretty |
20 |
> standard. I also see this in k3b every time I start the program. As I |
21 |
> do a lot of audio work I'd really like to make sure the CDs I burn on |
22 |
> this machine will be acceptable to folks/friends/customers. Here's |
23 |
> what I see in k3b: |
24 |
> |
25 |
> <SNIP> |
26 |
> System locale charset is ANSI_X3.4-1968 |
27 |
> Your system's locale charset (i.e. the charset used to encode |
28 |
> filenames) is set to ANSI_X3.4-1968. It is highly unlikely that this |
29 |
> has been done intentionally. Most likely the locale is not set at all. |
30 |
> An invalid setting will result in problems when creating data |
31 |
> projects. |
32 |
> Solution: To properly set the locale charset make sure the LC_* |
33 |
> environment variables are set. Normally the distribution setup tools |
34 |
> take care of this. |
35 |
> <SNIP> |
36 |
> |
37 |
> I don't have a clue what's wrong and the Gentoo pages about locale |
38 |
> setup seem to make some assumptions about my understanding of what |
39 |
> this does and how it does it that I'm not living up to so I really |
40 |
> don't know what to provide. I'll start with this and we'll see how it |
41 |
> goes. It seems that possibly I'm supposed to hand edit |
42 |
> /etc/env.d/02locale but in my longish history of running Gentoo (as a |
43 |
> user type) I don't believe I've ever had to edit that so I'm thinking |
44 |
> I must have messed up some other config file somewhere? |
45 |
> |
46 |
> Thanks in advance, |
47 |
> Mark |
48 |
> |
49 |
> lightning ~ # cat /etc/locale.gen |
50 |
> en_US ISO-8859-1 |
51 |
> en_US.UTF-8 UTF-8 |
52 |
> lightning ~ # |
53 |
> |
54 |
> lightning ~ # locale |
55 |
> LANG=en_US |
56 |
> LC_CTYPE="en_US" |
57 |
> LC_NUMERIC="en_US" |
58 |
> LC_TIME="en_US" |
59 |
> LC_COLLATE="en_US" |
60 |
> LC_MONETARY="en_US" |
61 |
> LC_MESSAGES="en_US" |
62 |
> LC_PAPER="en_US" |
63 |
> LC_NAME="en_US" |
64 |
> LC_ADDRESS="en_US" |
65 |
> LC_TELEPHONE="en_US" |
66 |
> LC_MEASUREMENT="en_US" |
67 |
> LC_IDENTIFICATION="en_US" |
68 |
> LC_ALL= |
69 |
> lightning ~ # |
70 |
> |
71 |
> lightning ~ # cat /etc/env.d/02locale |
72 |
> LANG=en_US |
73 |
> lightning ~ # |
74 |
> |
75 |
> |
76 |
> |
77 |
|
78 |
Check in your /etc/make.conf file and see if you have !some! of this: |
79 |
|
80 |
INPUT_DEVICES="keyboard mouse" |
81 |
VIDEO_CARDS="nvidia" |
82 |
LINGUAS="en" |
83 |
LANG="en_US" |
84 |
LC_ALL="en_US.utf8" |
85 |
SANE_BACKENDS="hp" |
86 |
NUT_DRIVERS="cyberpower" |
87 |
ALSA_CARDS="emu10k1" |
88 |
CAMERAS="canon" |
89 |
LCD_DEVICES="" |
90 |
APACHE2_MODULES="" |
91 |
|
92 |
Keep in mind, your settings may vary from mine but some may need to be |
93 |
just like mine. Also, if you do a emerge -pv <package-name>, it will |
94 |
show what options are on and also what is available to use if nothing is |
95 |
set. Not all packages will use those settings so don't be concerned if |
96 |
it doesn't show them on those. |
97 |
|
98 |
Hope that helps. |
99 |
|
100 |
Dale |
101 |
|
102 |
:-) :-) |