You are not logged in.

#1 2011-11-22 19:09:01

archer42
Member
Registered: 2011-06-10
Posts: 92

locales corrupted since update

Hi,
my locales are corrupted since some update.
In rc.conf:

LOCALE="de_DE.UTF-8"

In locale.gen:

de_DE.UTF-8 UTF-8

What I tried:

# localedef -i de_DE -c -f UTF-8 de_DE.UTF-8
# locale-gen
Generating locales...
  de_DE.UTF-8... done
Generation complete.
# 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
de_DE.utf8
# stat /usr/share/i18n/locales/de_DE
  File: `/usr/share/i18n/locales/de_DE'
  Size: 6498      	Blocks: 16         IO Block: 4096   regular file
Device: 804h/2052d	Inode: 21371208    Links: 1
Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2011-11-22 20:03:39.445949586 +0100
Modify: 2011-10-25 06:57:27.000000000 +0200
Change: 2011-10-30 15:46:19.316014287 +0100
 Birth: -

Whats this for an exotic problem?

Offline

#2 2011-11-22 19:15:01

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: locales corrupted since update

Have you tried the suggestions mentioned in the other threads?

Offline

#3 2011-11-22 19:22:56

bernarcher
Forum Fellow
From: Germany
Registered: 2009-02-17
Posts: 2,281

Re: locales corrupted since update

You could try the utf8 locale instead. These are my locale settings:

bp:~$ locale
LANG=de_DE.utf8
LC_CTYPE="de_DE.utf8"
LC_NUMERIC="de_DE.utf8"
LC_TIME="de_DE.utf8"
LC_COLLATE="de_DE.utf8"
LC_MONETARY="de_DE.utf8"
LC_MESSAGES="de_DE.utf8"
LC_PAPER="de_DE.utf8"
LC_NAME="de_DE.utf8"
LC_ADDRESS="de_DE.utf8"
LC_TELEPHONE="de_DE.utf8"
LC_MEASUREMENT="de_DE.utf8"
LC_IDENTIFICATION="de_DE.utf8"
LC_ALL=
bp:~$ locale -a
C
de_DE@euro
de_DE.iso885915@euro
de_DE.utf8
en_US
en_US.iso88591

And do as karol suggested: Search the forums.


To know or not to know ...
... the questions remain forever.

Offline

#4 2011-11-22 20:36:42

archer42
Member
Registered: 2011-06-10
Posts: 92

Re: locales corrupted since update

I already searched a lot threw forums.. all threads I read where solved with a locale-gen and harder one where unanswered...

So there's a need for a new thread wink


# vim /etc/locale.gen
# locale-gen
Generating locales...
  de_DE.UTF-8... done
  de_DE.ISO-8859-1... done
  de_DE.ISO-8859-15@euro... done
Generation complete.
# 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
de_DE
de_DE.iso88591
de_DE.iso885915@euro
de_DE.utf8
de_DE@euro
deutsch
german

Last edited by archer42 (2011-11-22 20:36:55)

Offline

#5 2011-11-22 20:44:39

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: locales corrupted since update

https://bbs.archlinux.org/viewtopic.php … 2#p1014462 looks similar to your issue and the "fix" didn't involve a 'locale-gen' as OP already have tried it and it didn't change anything.

Offline

#6 2011-11-23 06:04:45

archer42
Member
Registered: 2011-06-10
Posts: 92

Re: locales corrupted since update

Ok thanks,
exporting the locales and then locale-gen solved it

Offline

#7 2011-11-23 18:53:14

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: locales corrupted since update

I'm not OK with this "solution" as these tricks shouldn't be needed, but I don't know where to look for the cause of this weird behavior. If you ever find out what's wrong here, please come back and post.
For the time being, please mark the thread as solved.

Offline

Board footer

Powered by FluxBB