Gentoo Archives: gentoo-user

From: Jack <ostroffjh@×××××××××××××××××.net>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Problem with locale-gen
Date: Wed, 28 Oct 2020 19:19:04
Message-Id: MMQJVCGQ.5D4B7NVZ.FWFYECYT@ZUPPZQOF.EBOAHNBE.3TERYCF3
In Reply to: [gentoo-user] Problem with locale-gen by "Toldi Balázs"
1 On 2020.10.28 14:57, Toldi Balázs wrote:
2 > Hi,
3 > I did a fresh install a cuple of days ago. Everything worked fine
4 > unitl I
5 > realised that my locale files are incorrect.
6 >
7 > When I run locale-gen, I get this message:
8 > locale-gen
9 > * Generating 4 locales (this might take a while) with 8 jobs
10 > * Bad entry in locale.gen: 'UTF-8 '; skipping
11 It may be irrelevant, but see if removing that trailing space makes a
12 difference
13
14 > * (4/4) Generating hu_HU.UTF-8 ...
15 > failed to set locale!
16 > [error] character map file `C.UTF-8' not found: No such file or
17 > directory
18 > failed to set locale!
19 > [error] cannot open locale definition file `UTF-8': No such file or
20 > directory
21 > [ !! ]
22 > * (1/4) Generating en_US.ISO-8859-1 ...
23 > [ ok ]
24 > * (3/4) Generating hu_HU.ISO-8859-1 ...
25 > failed to set locale!
26 > [error] character map file `hu_HU.UTF-8' not found: No such file or
27 > directory
28 > failed to set locale!
29 > [error] no output file produced because errors were issued
30 > [ !! ]
31 > * (2/4) Generating en_US.UTF-8 ...
32 > [ ok ]
33 > * Generation complete
34 > * Adding locales to archive ...
35 > incomplete set of locale files in "//usr/lib64/locale/UTF-8"
36 > incomplete set of locale files in "//usr/lib64/locale/hu_HU.iso88591"
37 > [ !! ]
38 >
39 > locale -a
40 > locale: Cannot set LC_CTYPE to default locale: No such file or
41 > directory
42 > locale: Cannot set LC_MESSAGES to default locale: No such file or
43 > directory
44 > locale: Cannot set LC_COLLATE to default locale: No such file or
45 > directory
46 > C
47 > POSIX
48 > en_US
49 > en_US.iso88591
50 >
51 > The contents of my /etc/locale.gen:
52 > grep -v # /etc/locale.gen
53 > hu_HU.UTF-8 UTF-8
54 > hu_HU.ISO-8859-1
55 > en_US.UTF-8 UTF-8
56 > en_US ISO-8859-1
57 >
58 > Did I miss something?
59 >
60 > Thanks in advance,
61 > Balázs
62 Since all the locale related files belong to glibc, have you tried
63 reinstalling that package?

Replies

Subject Author
Re: [gentoo-user] Problem with locale-gen "Toldi Balázs" <balazs@×××××.eu>