1 |
On Wednesday 27 September 2006 22:48, Bo Ørsted Andresen wrote: |
2 |
|
3 |
> `locale-gen --config /etc/locale.gen` is run by pkg_postinst() of |
4 |
> sys-libs/glibc. |
5 |
|
6 |
Seems reasonable. |
7 |
|
8 |
> What is the output of: |
9 |
> |
10 |
> # egrep -v '^#|^$' /etc/locale.gen |
11 |
|
12 |
It just happened that emerge -e world had reached glibc as I read this, so I |
13 |
waited for it to end and then paused the emerge. This is the result: |
14 |
|
15 |
# egrep -v '^#|^$' /etc/locale.gen |
16 |
en_GB |
17 |
en_GB ISO-8859-1 |
18 |
en_GB ISO-8859-15 |
19 |
en_GB.UTF-8 UTF-8 |
20 |
|
21 |
I assume there's a typo there somewhere, but it seems to me to match the |
22 |
examples given in /usr/share/i18n/SUPPORTED. I know the -15 variant isn't |
23 |
supported (by what? It isn't clear), and I can remove it if necessary. |
24 |
|
25 |
Output from glibc postinst: |
26 |
|
27 |
* Generating 3 locales (this might take a while) |
28 |
* (1/3) Generating en_GB ... |
29 |
/usr/share/i18n/locales/en_GB:25: LC_IDENTIFICATION: unknown character in |
30 |
field `address' |
31 |
/usr/share/i18n/locales/en_GB:60: LC_MONETARY: unknown character in field |
32 |
`currency_symbol' [ !! ] |
33 |
* (2/3) Generating en_GB.ISO-8859-1 ... |
34 |
cannot open locale definition file `ISO-8859-1': No such file or directory |
35 |
[ !! ] |
36 |
* (3/3) Generating en_GB.ISO-8859-15 ... |
37 |
cannot open locale definition file `ISO-8859-15': No such file or directory |
38 |
[ !! ] |
39 |
* Bad entry in locale.gen: 'UTF-8 '; skipping |
40 |
* Generation complete |
41 |
|
42 |
After this, I get: |
43 |
|
44 |
# locale -a |
45 |
C |
46 |
POSIX |
47 |
en_GB |
48 |
|
49 |
and I have to run locale-def again to re-create my locales, thus: |
50 |
|
51 |
# localedef -c -i en_GB -f ISO-8859-15 en_GB.ISO-8859-15 |
52 |
# localedef -c -i en_GB -f ISO-8859-1 en_GB.ISO-8859-1 |
53 |
# localedef -c -i en_GB -f UTF-8 en_GB.UTF-8 |
54 |
|
55 |
(no errors reported) |
56 |
|
57 |
Then: |
58 |
|
59 |
# locale -a |
60 |
C |
61 |
POSIX |
62 |
en_GB |
63 |
en_GB.iso88591 |
64 |
en_GB.iso885915 |
65 |
en_GB.utf8 |
66 |
|
67 |
Thanks for pointing out the stage at which my locales are getting zapped; it |
68 |
helped me this time by coincidence, but it would be good to find the |
69 |
problem and fix it. |
70 |
|
71 |
-- |
72 |
Rgds |
73 |
Peter |
74 |
|
75 |
-- |
76 |
gentoo-amd64@g.o mailing list |