1 |
Kevin O'Gorman schrieb: |
2 |
> perl: warning: Setting locale failed. |
3 |
> perl: warning: Please check that your locale settings: |
4 |
> LANGUAGE = (unset), |
5 |
> LC_ALL = "en_EN", |
6 |
> LANG = "en_EN" |
7 |
> are supported and installed on your system. |
8 |
> perl: warning: Falling back to the standard locale ("C"). |
9 |
|
10 |
|
11 |
> Anyway, I added .utf8 to the lines in my 02locale file, and it made no |
12 |
> difference at all. |
13 |
> I don't see utf8 in any of the outputs, and k3b and perl still don't like |
14 |
> it. |
15 |
> |
16 |
> The outputs requested (plus my 02locale file) were: |
17 |
> |
18 |
> kevin@treat ~ $ locale |
19 |
> locale: Cannot set LC_CTYPE to default locale: No such file or directory |
20 |
> locale: Cannot set LC_MESSAGES to default locale: No such file or directory |
21 |
> locale: Cannot set LC_ALL to default locale: No such file or directory |
22 |
> LANG=en_EN |
23 |
> LC_CTYPE="en_EN" |
24 |
> LC_NUMERIC="en_EN" |
25 |
> LC_TIME="en_EN" |
26 |
> LC_COLLATE="en_EN" |
27 |
> LC_MONETARY="en_EN" |
28 |
> LC_MESSAGES="en_EN" |
29 |
> LC_PAPER="en_EN" |
30 |
> LC_NAME="en_EN" |
31 |
> LC_ADDRESS="en_EN" |
32 |
> LC_TELEPHONE="en_EN" |
33 |
> LC_MEASUREMENT="en_EN" |
34 |
> LC_IDENTIFICATION="en_EN" |
35 |
> LC_ALL=en_EN |
36 |
> kevin@treat ~ $ locale -a |
37 |
> locale: Cannot set LC_CTYPE to default locale: No such file or directory |
38 |
> locale: Cannot set LC_MESSAGES to default locale: No such file or directory |
39 |
> locale: Cannot set LC_COLLATE to default locale: No such file or directory |
40 |
> C |
41 |
> POSIX |
42 |
> en_US |
43 |
> en_US.utf8 |
44 |
> es_MX |
45 |
> fr_FR |
46 |
> fr_FR@euro |
47 |
> kevin@treat ~ $ cat /etc/locale.gen |
48 |
> # /etc/locale.gen: list all of the locales you want to have on your system |
49 |
> # |
50 |
> # The format of each line: |
51 |
> # <locale> <charmap> |
52 |
> # |
53 |
> # Where <locale> is a locale located in /usr/share/i18n/locales/ and |
54 |
> # where <charmap> is a charmap located in /usr/share/i18n/charmaps/. |
55 |
> # |
56 |
> # All blank lines and lines starting with # are ignored. |
57 |
> # |
58 |
> # For the default list of supported combinations, see the file: |
59 |
> # /usr/share/i18n/SUPPORTED |
60 |
> # |
61 |
> # Whenever glibc is emerged, the locales listed here will be automatically |
62 |
> # rebuilt for you. After updating this file, you can simply run |
63 |
> `locale-gen` |
64 |
> # yourself instead of re-emerging glibc. |
65 |
> |
66 |
> en_US ISO-8859-1 |
67 |
> en_US.UTF-8 UTF-8 |
68 |
> #ja_JP.EUC-JP EUC-JP |
69 |
> #ja_JP.UTF-8 UTF-8 |
70 |
> #ja_JP EUC-JP |
71 |
> #en_HK ISO-8859-1 |
72 |
> #en_PH ISO-8859-1 |
73 |
> #de_DE ISO-8859-1 |
74 |
> #de_DE@euro ISO-8859-15 |
75 |
> es_MX ISO-8859-1 |
76 |
> #fa_IR UTF-8 |
77 |
> fr_FR ISO-8859-1 |
78 |
> fr_FR@euro ISO-8859-15 |
79 |
> #it_IT ISO-8859-1 |
80 |
> #pl_PL ISO-8859-15 |
81 |
> |
82 |
> |
83 |
> kevin@treat ~ $ cat /etc/env.d/02locale |
84 |
> LANG=en_US.utf8 |
85 |
> LC_ALL=en_us.utf8 |
86 |
> kevin@treat ~ $ |
87 |
> |
88 |
> |
89 |
|
90 |
Here is my output which I guess is correct as it works fine for me! |
91 |
|
92 |
billie@gentoo ~ $ locale |
93 |
LANG=de_DE.utf8 |
94 |
LC_CTYPE="de_DE.utf8" |
95 |
LC_NUMERIC="de_DE.utf8" |
96 |
LC_TIME="de_DE.utf8" |
97 |
LC_COLLATE="de_DE.utf8" |
98 |
LC_MONETARY="de_DE.utf8" |
99 |
LC_MESSAGES="de_DE.utf8" |
100 |
LC_PAPER="de_DE.utf8" |
101 |
LC_NAME="de_DE.utf8" |
102 |
LC_ADDRESS="de_DE.utf8" |
103 |
LC_TELEPHONE="de_DE.utf8" |
104 |
LC_MEASUREMENT="de_DE.utf8" |
105 |
LC_IDENTIFICATION="de_DE.utf8" |
106 |
LC_ALL=de_DE.utf8 |
107 |
|
108 |
billie@gentoo ~ $ locale -a |
109 |
C |
110 |
de_DE |
111 |
de_DE@euro |
112 |
de_DE.utf8 |
113 |
en_GB |
114 |
en_GB.utf8 |
115 |
en_US |
116 |
en_US.utf8 |
117 |
POSIX |
118 |
|
119 |
billie@gentoo ~ $ cat /etc/locale.gen |
120 |
# /etc/locale.gen: list all of the locales you want to have on your system |
121 |
# |
122 |
# The format of each line: |
123 |
# <locale> <charmap> |
124 |
# |
125 |
# Where <locale> is a locale located in /usr/share/i18n/locales/ and |
126 |
# where <charmap> is a charmap located in /usr/share/i18n/charmaps/. |
127 |
# |
128 |
# All blank lines and lines starting with # are ignored. |
129 |
# |
130 |
# For the default list of supported combinations, see the file: |
131 |
# /usr/share/i18n/SUPPORTED |
132 |
# |
133 |
# Whenever glibc is emerged, the locales listed here will be automatically |
134 |
# rebuilt for you. After updating this file, you can simply run |
135 |
`locale-gen` |
136 |
# yourself instead of re-emerging glibc. |
137 |
|
138 |
en_US.UTF-8 UTF-8 |
139 |
en_US ISO-8859-1 |
140 |
en_GB.UTF-8 UTF-8 |
141 |
en_GB ISO-8859-1 |
142 |
de_DE.UTF-8 UTF-8 |
143 |
de_DE ISO-8859-1 |
144 |
de_DE@euro ISO-8859-15 |
145 |
|
146 |
|
147 |
billie@gentoo ~ $ cat /etc/env.d/02locale |
148 |
LANG="de_DE.utf8" |
149 |
LC_ALL="de_DE.utf8" |
150 |
GDM_LANG="de_DE.utf8" |
151 |
LC_CTYPE="de_DE.utf8" |
152 |
LC_NUMERIC="de_DE.utf8" |
153 |
LC_TIME="de_DE.utf8" |
154 |
LC_COLLATE="de_DE.utf8" |
155 |
LC_MONETARY="de_DE.utf8" |
156 |
LC_MESSAGES="en_US.utf8" |
157 |
LC_PAPER="de_DE.utf8" |
158 |
LC_NAME="de_DE.utf8" |
159 |
LC_ADDRESS="de_DE.utf8" |
160 |
LC_TELEPHONE="de_DE.utf8" |
161 |
LC_MEASUREMENT="de_DE.utf8" |
162 |
LC_IDENTIFICATION="de_DE.utf8" |
163 |
|
164 |
Maybe locale-gen is not working properly at your system as perl says the |
165 |
locales are not installed. What are the contents of /usr/lib/locale/? |
166 |
|
167 |
I am guessing this as your "locale" output looks really weird. It does |
168 |
not show the ".utf8" parts. And en_EN also looks strange as it is not a |
169 |
valid locale. It should be for instance LANG=en_US.utf8 like in |
170 |
02locale. Plus the error messages of missing directories for LC_CTYPE |
171 |
LC_MESSAGES and LC_COLLATE. |
172 |
|
173 |
Your settings in locale.gen and 02locale look correct. Could it be |
174 |
possible that your perl scripts or any other home brewed things are |
175 |
messing this up! |
176 |
|
177 |
Regards, |
178 |
|
179 |
Daniel |
180 |
-- |
181 |
gentoo-user@l.g.o mailing list |