0

After replacing of glibc with glibc-git the system does not have any locales at all. I've switched back to glibc and it is the same (no locales). Trying to regen the locales I get:

# locale-gen
Generating locales...
error: Bad entry 'C '
error: Bad entry 'POSIX '
error: Bad entry 'de_DE.utf8 '
error: Bad entry 'en_US.utf8 '
Generation complete.

System: Arch Linux

glibc: 2.26-11.0

/etc/locale.conf

LANG=de_DE.UTF-8
LC_CTYPE=de_DE.UTF-8
LC_NUMERIC=de_DE.UTF-8
LC_TIME=de_DE.UTF-8
LC_COLLATE=C
LC_MONETARY=de_DE.UTF-8
LC_MESSAGES=de_DE.UTF-8
LC_PAPER=de_DE.UTF-8
LC_NAME=de_DE.UTF-8
LC_ADDRESS=de_DE.UTF-8
LC_TELEPHONE=de_DE.UTF-8
LC_MEASUREMENT=de_DE.UTF-8
LC_IDENTIFICATION="de_DE.UTF-8"

/etc/locale.gen

C
POSIX
de_DE.utf8
en_US.utf8

Thanks in advance!

closed as off-topic by Jeff Schaller, telcoM, jimmij, Timothy Martin, Kiwy May 1 '18 at 9:55

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions describing a problem that can't be reproduced and seemingly went away on its own (or went away when a typo was fixed) are off-topic as they are unlikely to help future readers." – Jeff Schaller, telcoM, jimmij, Timothy Martin, Kiwy
If this question can be reworded to fit the rules in the help center, please edit the question.

  • You have got no locales files installed obviously. Someone else may tell you how to install them, Arch is not my thing. – Rui F Ribeiro Apr 22 '18 at 12:01
  • The locales in the locale.gen file appear to be defined like this: de_DE.UTF-8 UTF-8. Try putting that in your /etc/locale.gen and regenerating. (unless it has always worked? I don't know but this is what is on my system) – arcsin Apr 22 '18 at 13:52
  • @arcsin Thanks! The right syntax for locale.gen is: de_DE.UTF-8 UTF-8 en_US.UTF-8 UTF-8. Problem solved! – Banish Apr 22 '18 at 16:13
1

The right syntax for locale.gen is:

de_DE.UTF-8 UTF-8 
en_US.UTF-8 UTF-8

Problem solved!

Not the answer you're looking for? Browse other questions tagged or ask your own question.