1 |
Thanks for answering. |
2 |
|
3 |
|
4 |
On 10/6/06, Bo Ørsted Andresen <bo.andresen@××××.dk> wrote: |
5 |
> |
6 |
> On Friday 06 October 2006 13:29, Liviu Andronic wrote: |
7 |
> > I have a slight problem with defining a en_US.UTF-8 locale. I tried the |
8 |
> > Gentoo Official Documentation on Localization and Syste-wide |
9 |
> > UTF-8, but I cannot make actually having en_US.UTF-8. Here are some |
10 |
> > commands I ran: |
11 |
> > |
12 |
> > The locales I have (nothing changes even after I run the rest of the |
13 |
> > commands. |
14 |
> > localhost ~ # locale -a |
15 |
> > C |
16 |
> > en_US.utf8 |
17 |
> > POSIX |
18 |
|
19 |
Please note that here locale -a doesn't show en_US.UTF-8, but |
20 |
en_US*.utf8 *(case |
21 |
change and missing dash). |
22 |
|
23 |
Furthermore, I wouldn't have written on this matter if I didn't have |
24 |
problems with an application. I use emelFM2 as file manager and it uses LC_* |
25 |
variables to determine the encoding to be used for file names (if not |
26 |
mistaking anything). Now, after having made changes to the locales (emelFM2 |
27 |
was using C locale before, including for it's configuration file), filenames |
28 |
containing peculiar characters (Cyrillic and others) are illisible in the |
29 |
filelist. Moreover, although in debugs emelFM2 determines correctly that |
30 |
LC_ALL indicates en_US.UTF-8, it falls back (I believe) to using C locale |
31 |
instead of the utf-8 one (reads from and saves to config-C instead of |
32 |
config-en_US.UTF-8). |
33 |
|
34 |
|
35 |
> localhost ~ # localedef -i en_US -f UTF-8 en_US.UTF-8 |
36 |
> |
37 |
> localedef is not necessary. Use locale-gen instead. |
38 |
> |
39 |
> > localhost ~ # locale-gen |
40 |
> > * Generating 1 locales (this might take a while) |
41 |
> > * (1/1) Generating en_US.UTF-8 ... [ ok ] * Generation complete |
42 |
> |
43 |
> Which you did - with success. |
44 |
> |
45 |
> > localhost ~ # locale -a |
46 |
> > C |
47 |
> > en_US.utf8 |
48 |
> > POSIX |
49 |
> > localhost ~ # env | grep -i LC_ |
50 |
> > LC_ALL=en_US.UTF-8 |
51 |
> |
52 |
> And your current locale obviously is en_US.UTF-8. So... congrats... |
53 |
> everything |
54 |
> is fine. :) |
55 |
> |
56 |
|
57 |
Not quite. Please see comments above. |
58 |
|
59 |
|
60 |
-- |
61 |
> Bo Andresen |
62 |
> |
63 |
> |
64 |
> |
65 |
|
66 |
|
67 |
-- |
68 |
Liviu |