public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Problem with locale-gen
@ 2020-10-28 18:57 Toldi Balázs
  2020-10-28 19:18 ` Jack
  0 siblings, 1 reply; 3+ messages in thread
From: Toldi Balázs @ 2020-10-28 18:57 UTC (permalink / raw
  To: gentoo-user

Hi,
I did a fresh install a cuple of days ago. Everything worked fine unitl I 
realised that my locale files are incorrect. 

When I run locale-gen, I get this message:
locale-gen
 * Generating 4 locales (this might take a while) with 8 jobs
 * Bad entry in locale.gen: 'UTF-8 '; skipping
 *  (4/4) Generating hu_HU.UTF-8 ...
failed to set locale!
[error] character map file `C.UTF-8' not found: No such file or directory
failed to set locale!
[error] cannot open locale definition file `UTF-8': No such file or directory                                                                           
[ !! ]
 *  (1/4) Generating en_US.ISO-8859-1 ...                                                                                                               
[ ok ]
 *  (3/4) Generating hu_HU.ISO-8859-1 ...
failed to set locale!
[error] character map file `hu_HU.UTF-8' not found: No such file or directory
failed to set locale!
[error] no output file produced because errors were issued                                                                                              
[ !! ]
 *  (2/4) Generating en_US.UTF-8 ...                                                                                                                    
[ ok ]
 * Generation complete
 * Adding locales to archive ...
incomplete set of locale files in "//usr/lib64/locale/UTF-8"
incomplete set of locale files in "//usr/lib64/locale/hu_HU.iso88591"                                                                                   
[ !! ]

locale -a
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_COLLATE to default locale: No such file or directory
C
POSIX
en_US
en_US.iso88591

The contents of my /etc/locale.gen:
grep -v # /etc/locale.gen
hu_HU.UTF-8 UTF-8
hu_HU.ISO-8859-1
en_US.UTF-8 UTF-8
en_US ISO-8859-1

Did I miss something? 

Thanks in advance,
Balázs




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [gentoo-user] Problem with locale-gen
  2020-10-28 18:57 [gentoo-user] Problem with locale-gen Toldi Balázs
@ 2020-10-28 19:18 ` Jack
  2020-10-28 19:45   ` Toldi Balázs
  0 siblings, 1 reply; 3+ messages in thread
From: Jack @ 2020-10-28 19:18 UTC (permalink / raw
  To: gentoo-user

On 2020.10.28 14:57, Toldi Balázs wrote:
> Hi,
> I did a fresh install a cuple of days ago. Everything worked fine  
> unitl I
> realised that my locale files are incorrect.
> 
> When I run locale-gen, I get this message:
> locale-gen
>  * Generating 4 locales (this might take a while) with 8 jobs
>  * Bad entry in locale.gen: 'UTF-8 '; skipping
It may be irrelevant, but see if removing that trailing space makes a  
difference

>  *  (4/4) Generating hu_HU.UTF-8 ...
> failed to set locale!
> [error] character map file `C.UTF-8' not found: No such file or  
> directory
> failed to set locale!
> [error] cannot open locale definition file `UTF-8': No such file or  
> directory
> [ !! ]
>  *  (1/4) Generating en_US.ISO-8859-1 ...
> [ ok ]
>  *  (3/4) Generating hu_HU.ISO-8859-1 ...
> failed to set locale!
> [error] character map file `hu_HU.UTF-8' not found: No such file or  
> directory
> failed to set locale!
> [error] no output file produced because errors were issued
> [ !! ]
>  *  (2/4) Generating en_US.UTF-8 ...
> [ ok ]
>  * Generation complete
>  * Adding locales to archive ...
> incomplete set of locale files in "//usr/lib64/locale/UTF-8"
> incomplete set of locale files in "//usr/lib64/locale/hu_HU.iso88591"
> [ !! ]
> 
> locale -a
> locale: Cannot set LC_CTYPE to default locale: No such file or  
> directory
> locale: Cannot set LC_MESSAGES to default locale: No such file or  
> directory
> locale: Cannot set LC_COLLATE to default locale: No such file or  
> directory
> C
> POSIX
> en_US
> en_US.iso88591
> 
> The contents of my /etc/locale.gen:
> grep -v # /etc/locale.gen
> hu_HU.UTF-8 UTF-8
> hu_HU.ISO-8859-1
> en_US.UTF-8 UTF-8
> en_US ISO-8859-1
> 
> Did I miss something?
> 
> Thanks in advance,
> Balázs
Since all the locale related files belong to glibc, have you tried  
reinstalling that package?


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [gentoo-user] Problem with locale-gen
  2020-10-28 19:18 ` Jack
@ 2020-10-28 19:45   ` Toldi Balázs
  0 siblings, 0 replies; 3+ messages in thread
From: Toldi Balázs @ 2020-10-28 19:45 UTC (permalink / raw
  To: gentoo-user

I've just realised that I wrote "hu_HU.ISO-8859-1" instead of "hu_HU 
ISO-8859-1". Changing it fixed the problem.

Jack a következőt írta ekkor: Wednesday, 28 October 2020 20:18:55 CET
> On 2020.10.28 14:57, Toldi Balázs wrote:
> > Hi,
> > I did a fresh install a cuple of days ago. Everything worked fine
> > unitl I
> > realised that my locale files are incorrect.
> > 
> > When I run locale-gen, I get this message:
> > locale-gen
> > 
> >  * Generating 4 locales (this might take a while) with 8 jobs
> >  * Bad entry in locale.gen: 'UTF-8 '; skipping
> 
> It may be irrelevant, but see if removing that trailing space makes a
> difference
> 
> >  *  (4/4) Generating hu_HU.UTF-8 ...
> > 
> > failed to set locale!
> > [error] character map file `C.UTF-8' not found: No such file or
> > directory
> > failed to set locale!
> > [error] cannot open locale definition file `UTF-8': No such file or
> > directory
> > [ !! ]
> > 
> >  *  (1/4) Generating en_US.ISO-8859-1 ...
> > 
> > [ ok ]
> > 
> >  *  (3/4) Generating hu_HU.ISO-8859-1 ...
> > 
> > failed to set locale!
> > [error] character map file `hu_HU.UTF-8' not found: No such file or
> > directory
> > failed to set locale!
> > [error] no output file produced because errors were issued
> > [ !! ]
> > 
> >  *  (2/4) Generating en_US.UTF-8 ...
> > 
> > [ ok ]
> > 
> >  * Generation complete
> >  * Adding locales to archive ...
> > 
> > incomplete set of locale files in "//usr/lib64/locale/UTF-8"
> > incomplete set of locale files in "//usr/lib64/locale/hu_HU.iso88591"
> > [ !! ]
> > 
> > locale -a
> > locale: Cannot set LC_CTYPE to default locale: No such file or
> > directory
> > locale: Cannot set LC_MESSAGES to default locale: No such file or
> > directory
> > locale: Cannot set LC_COLLATE to default locale: No such file or
> > directory
> > C
> > POSIX
> > en_US
> > en_US.iso88591
> > 
> > The contents of my /etc/locale.gen:
> > grep -v # /etc/locale.gen
> > hu_HU.UTF-8 UTF-8
> > hu_HU.ISO-8859-1
> > en_US.UTF-8 UTF-8
> > en_US ISO-8859-1
> > 
> > Did I miss something?
> > 
> > Thanks in advance,
> > Balázs
> 
> Since all the locale related files belong to glibc, have you tried
> reinstalling that package?






^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-10-28 19:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-10-28 18:57 [gentoo-user] Problem with locale-gen Toldi Balázs
2020-10-28 19:18 ` Jack
2020-10-28 19:45   ` Toldi Balázs

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox