1 |
On Thu, May 29, 2008 at 4:09 PM, Daniel Pielmeier < |
2 |
daniel.pielmeier@××××××××××.com> wrote: |
3 |
|
4 |
> Kevin O'Gorman schrieb: |
5 |
> |
6 |
> On Thu, May 29, 2008 at 3:18 PM, Mick <michaelkintzios@×××××.com> wrote: |
7 |
>> |
8 |
>> On Thursday 29 May 2008, Kevin O'Gorman wrote: |
9 |
>>> |
10 |
>>>> On Thu, May 29, 2008 at 2:29 PM, Mick <michaelkintzios@×××××.com> |
11 |
>>>> wrote: |
12 |
>>>> |
13 |
>>>>> On Thursday 29 May 2008, Kevin O'Gorman wrote: |
14 |
>>>>> |
15 |
>>>>>> When I crank up K3b, it complains about my setup, with the message |
16 |
>>>>>> |
17 |
>>>>>> "System locale charset is ANSI_X3.4-1968 |
18 |
>>>>>> Your system's locale charset (i.e. the charset used to encode |
19 |
>>>>>> filenames) is set to ANSI_X3.4-1968. It is highly unlikely that this |
20 |
>>>>>> has been done intentionally. |
21 |
>>>>>> Most likely the locale is not set at all. An invalid setting |
22 |
>>>>>> will result in problems when creating data projects. |
23 |
>>>>>> Solution: To properly set the locale charset make sure the LC_* |
24 |
>>>>>> environment variables are set. Normally the distribution setup tools |
25 |
>>>>>> take care of this." |
26 |
>>>>>> |
27 |
>>>>>> It is correct that this is not intentional (it does seem antique). I |
28 |
>>>>>> |
29 |
>>>>> have |
30 |
>>>>> |
31 |
>>>>> configured .mybashrc to set my LANG to "en_US", but nothing beyond |
32 |
>>>>>> that. What "distribution setup tools" is it referring to, so that I |
33 |
>>>>>> |
34 |
>>>>> can |
35 |
>>> |
36 |
>>>> correct this on gentoo? |
37 |
>>>>>> |
38 |
>>>>> What have you set up in your /etc/locale.gen ? |
39 |
>>>>> |
40 |
>>>> I won't take credit for setting this up, because I don't think I did. |
41 |
>>>> On |
42 |
>>>> the other hand, |
43 |
>>>> I've had occasion to internationalize a web page to dutch and polish, |
44 |
>>>> |
45 |
>>> which |
46 |
>>> |
47 |
>>>> appear |
48 |
>>>> in the list. So I dunno where it came from. |
49 |
>>>> |
50 |
>>>> But here's what's there: |
51 |
>>>> |
52 |
>>>> # /etc/locale.gen: list all of the locales you want to have on your |
53 |
>>>> |
54 |
>>> system |
55 |
>>> |
56 |
>>>> # |
57 |
>>>> # The format of each line: |
58 |
>>>> # <locale> <charmap> |
59 |
>>>> # |
60 |
>>>> # Where <locale> is a locale located in /usr/share/i18n/locales/ and |
61 |
>>>> # where <charmap> is a charmap located in /usr/share/i18n/charmaps/. |
62 |
>>>> # |
63 |
>>>> # All blank lines and lines starting with # are ignored. |
64 |
>>>> # |
65 |
>>>> # For the default list of supported combinations, see the file: |
66 |
>>>> # /usr/share/i18n/SUPPORTED |
67 |
>>>> # |
68 |
>>>> # Whenever glibc is emerged, the locales listed here will be |
69 |
>>>> |
70 |
>>> automatically |
71 |
>>> |
72 |
>>>> # rebuilt for you. After updating this file, you can simply run |
73 |
>>>> `locale-gen` |
74 |
>>>> # yourself instead of re-emerging glibc. |
75 |
>>>> |
76 |
>>>> en_US ISO-8859-1 |
77 |
>>>> en_US.UTF-8 UTF-8 |
78 |
>>>> #ja_JP.EUC-JP EUC-JP |
79 |
>>>> #ja_JP.UTF-8 UTF-8 |
80 |
>>>> #ja_JP EUC-JP |
81 |
>>>> #en_HK ISO-8859-1 |
82 |
>>>> #en_PH ISO-8859-1 |
83 |
>>>> #de_DE ISO-8859-1 |
84 |
>>>> #de_DE@euro ISO-8859-15 |
85 |
>>>> es_MX ISO-8859-1 |
86 |
>>>> #fa_IR UTF-8 |
87 |
>>>> fr_FR ISO-8859-1 |
88 |
>>>> fr_FR@euro ISO-8859-15 |
89 |
>>>> #it_IT ISO-8859-1 |
90 |
>>>> pl_PL ISO-8859-15 |
91 |
>>>> |
92 |
>>> This looks fine. If when you run $ locale you get a list with LANG=en_US |
93 |
>>> but |
94 |
>>> further down LC_ALL= (blank), then set export LC_ALL=xxx in your |
95 |
>>> .bashrc |
96 |
>>> to |
97 |
>>> whatever you want your locale set to. |
98 |
>>> |
99 |
>>> |
100 |
>> Halfway there. I did that, and now "locale" looks like |
101 |
>> |
102 |
>> kevin@treat ~ $ locale |
103 |
>> LANG=en_US |
104 |
>> LC_CTYPE="en_US" |
105 |
>> LC_NUMERIC="en_US" |
106 |
>> LC_TIME="en_US" |
107 |
>> LC_COLLATE="en_US" |
108 |
>> LC_MONETARY="en_US" |
109 |
>> LC_MESSAGES="en_US" |
110 |
>> LC_PAPER="en_US" |
111 |
>> LC_NAME="en_US" |
112 |
>> LC_ADDRESS="en_US" |
113 |
>> LC_TELEPHONE="en_US" |
114 |
>> LC_MEASUREMENT="en_US" |
115 |
>> LC_IDENTIFICATION="en_US" |
116 |
>> LC_ALL=en_US |
117 |
>> kevin@treat ~ $ |
118 |
>> |
119 |
>> However, when I start k3b from the KDE menus, it still complains. |
120 |
>> |
121 |
>> On the other hand, if I start k3b from the shell that gives the "locale" |
122 |
>> results above, |
123 |
>> it starts clean. So the issue seems to be that I need to inform KDE about |
124 |
>> the |
125 |
>> locale. |
126 |
>> |
127 |
>> I did a fresh boot, and that did not help, so I wonder if .mybashrc is the |
128 |
>> correct |
129 |
>> place to do this. |
130 |
>> |
131 |
>> |
132 |
> try /etc/env.d/02locale |
133 |
> |
134 |
> LANG="en_US" |
135 |
> LC_ALL="en_US" |
136 |
> |
137 |
> For details take a look at the localisation guide. |
138 |
> http://www.gentoo.org/doc/en/guide-localization.xml |
139 |
> -- |
140 |
> gentoo-user@l.g.o mailing list |
141 |
> |
142 |
> |
143 |
The file /etc/env.d/02locale does not exist on my system. I can create it, |
144 |
of course, |
145 |
but I suspect I may be missing something. Is there a package I should |
146 |
emerge? |
147 |
|
148 |
++ kevin |
149 |
|
150 |
-- |
151 |
Kevin O'Gorman, PhD |