1 |
On Sun, Dec 7, 2008 at 7:10 PM, Mark Knecht <markknecht@×××××.com> wrote: |
2 |
> On Sun, Dec 7, 2008 at 5:14 PM, smallnow <smallnow@×××××.com> wrote: |
3 |
>> Mike Edenfield wrote: |
4 |
>>> You should have a directory in /usr/share/locale for every locale you |
5 |
>>> want available on your system. The source files for the locales should |
6 |
>>> be in /usr/share/i18n/locales and /usr/share/i18n/charsets. That is, |
7 |
>>> you should have all of the following: |
8 |
>>> |
9 |
>>> /usr/share/i18n/locales/en_US |
10 |
>>> /usr/share/i18n/charsets/ISO8859-1 |
11 |
>>> /usr/share/i18n/charsets/UTF-8 |
12 |
>>> /usr/share/locale/en_US.ISO8859-1 |
13 |
>>> /usr/share/locale/en_US.UTF-8 |
14 |
>> |
15 |
>> Um, on my system, i have |
16 |
>> /usr/share/i18n/charmaps/UTF-8.gz |
17 |
>> /usr/share/i18n/charmaps/IS8859-1.gz |
18 |
>> notice charmaps vs charsets |
19 |
>> the other folders all have en_US files and folders, no utf8 extensions. And my |
20 |
>> locale stuff seems to work fine. Do you actually have those files on your |
21 |
>> computer or did you just type them from memory and get them wrong? |
22 |
>> I do locale -a and get: |
23 |
>> C |
24 |
>> POSIX |
25 |
>> en_US |
26 |
>> en_US.iso88591 |
27 |
>> en_US.utf8 |
28 |
>> also, I do locale-gen and it succeeds and I don't get any of the files you |
29 |
>> mentioned. |
30 |
>> |
31 |
>> Heres my suggestion to the original poster. I would heed the warning in the |
32 |
>> gentoo guide not to set LC_ALL. I also have a lot of other files under those |
33 |
>> directories and I would just leave them alone, but if you want to delete them, |
34 |
>> just move them so you can move them back later if it doesn't help. I think one |
35 |
>> of your problems might be that you need to set all your locale variables in |
36 |
>> 02locale. Then do "eselect env update" and relogin. Also you should have 644 |
37 |
>> permissions on these files. |
38 |
>> |
39 |
>> cat /etc/env.d/02locale |
40 |
>> LANG="en_US.UTF-8" |
41 |
>> LC_CTYPE="en_US.UTF-8" |
42 |
>> LC_NUMERIC="en_US.UTF-8" |
43 |
>> LC_TIME="en_US.UTF-8" |
44 |
>> LC_COLLATE="POSIX" |
45 |
>> LC_MONETARY="en_US.UTF-8" |
46 |
>> LC_MESSAGES="en_US.UTF-8" |
47 |
>> LC_PAPER="en_US.UTF-8" |
48 |
>> LC_NAME="en_US.UTF-8" |
49 |
>> LC_ADDRESS="en_US.UTF-8" |
50 |
>> LC_TELEPHONE="en_US.UTF-8" |
51 |
>> LC_MEASUREMENT="en_US.UTF-8" |
52 |
>> LC_IDENTIFICATION="en_US.UTF-8" |
53 |
>> |
54 |
>> |
55 |
>> cat /etc/locale.gen |
56 |
>> |
57 |
>> en_US ISO-8859-1 |
58 |
>> en_US.utf8 UTF-8 |
59 |
>> |
60 |
> |
61 |
> You may be correct about setting all of this in 02locale. I noticed |
62 |
> that the Gentoo formatting stuff for vi is treating LC_ALL and |
63 |
> LC_COLLATE differently than LINGUAS. The manual seems to say set |
64 |
> system wide stuff in 02locale and user stuff in your own account. |
65 |
> |
66 |
> [[ Two minutes later... ]] |
67 |
> |
68 |
> OK, I changed 02locale and just put your values in. I rane eselect env |
69 |
> update, logged out and back in. For the first time locale -a looks |
70 |
> good: |
71 |
> |
72 |
> lightning ~ # locale |
73 |
> LANG=en_US.UTF-8 |
74 |
> LC_CTYPE=en_US.UTF-8 |
75 |
> LC_NUMERIC=en_US.UTF-8 |
76 |
> LC_TIME=en_US.UTF-8 |
77 |
> LC_COLLATE=POSIX |
78 |
> LC_MONETARY=en_US.UTF-8 |
79 |
> LC_MESSAGES=en_US.UTF-8 |
80 |
> LC_PAPER=en_US.UTF-8 |
81 |
> LC_NAME=en_US.UTF-8 |
82 |
> LC_ADDRESS=en_US.UTF-8 |
83 |
> LC_TELEPHONE=en_US.UTF-8 |
84 |
> LC_MEASUREMENT=en_US.UTF-8 |
85 |
> LC_IDENTIFICATION=en_US.UTF-8 |
86 |
> LC_ALL= |
87 |
> lightning ~ # locale -a |
88 |
> C |
89 |
> POSIX |
90 |
> en_US |
91 |
> en_US.iso88591 |
92 |
> en_US.utf8 |
93 |
> lightning ~ # |
94 |
> |
95 |
> At this point I may be clean but I'm going to emerge glibc just to be sure. |
96 |
> |
97 |
> Back later... |
98 |
> |
99 |
> Cheers, |
100 |
> Mark |
101 |
> |
102 |
|
103 |
Hi all, |
104 |
OK, it appears that this has solved the problem as best I can tell |
105 |
right now. The two most consist manifestations of the problem - error |
106 |
messages when running layman and warning messages when starting k3b - |
107 |
are all gone. |
108 |
|
109 |
The solution in my case for anyone who might find this thread later was: |
110 |
|
111 |
1) Move all the locale stuff out of /etc/make.conf. I now only have |
112 |
the LINGUAS statement in there. |
113 |
|
114 |
2) Move all the locale stuff into /etc/env.d/02locale. I'm not |
115 |
qualified to say what the right set of statements in 02locale might |
116 |
be. I copied the ones kindly provided by smallnow. I did not set |
117 |
LC_ALL. |
118 |
|
119 |
3) Possibly most important run eselect env update. I've been running |
120 |
the older env-update script. I guess I did miss the memo! ;-) |
121 |
|
122 |
At this point the machine seems the happiest it's been in months. |
123 |
I'll of course have to watch it go through some updates over the next |
124 |
few weeks but the obvious issues seem solved. |
125 |
|
126 |
Good night, over and out, |
127 |
Mark |