You are not logged in.

#1 2014-11-01 12:36:24

aligator
Member
Registered: 2013-10-07
Posts: 75

[solved] LANG not set correct

Hi

if I call locale I get this

locale
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_ALL to default locale: No such file or directory
LANG=dde_DE.utf8
LC_CTYPE="dde_DE.utf8"
LC_NUMERIC="dde_DE.utf8"
LC_TIME="dde_DE.utf8"
LC_COLLATE="dde_DE.utf8"
LC_MONETARY="dde_DE.utf8"
LC_MESSAGES="dde_DE.utf8"
LC_PAPER="dde_DE.utf8"
LC_NAME="dde_DE.utf8"
LC_ADDRESS="dde_DE.utf8"
LC_TELEPHONE="dde_DE.utf8"
LC_MEASUREMENT="dde_DE.utf8"
LC_IDENTIFICATION="dde_DE.utf8"
LC_ALL=

but in my/etc/locale.conf I have this:

cat /etc/locale.conf 
LANG=de_DE.UTF-8

I have no idea where this dde_DE.utf8 is set.

aligator

Last edited by aligator (2014-11-02 12:42:25)

Offline

#2 2014-11-01 12:51:09

Varg
Member
From: Belgium
Registered: 2010-07-07
Posts: 272

Re: [solved] LANG not set correct

I encountered the same thing. fixed by changing everything in /etc/locale.conf to the correct name again: dde_DE.utf8 -> de_DE.UTF-8.  I ran locale-gen again just to be sure and then log out, log in.

Offline

#3 2014-11-01 14:27:44

aligator
Member
Registered: 2013-10-07
Posts: 75

Re: [solved] LANG not set correct

as I wrote before, it is already correct in /etc/locale.conf and I ran locale-gen again, but nothing changed.

Offline

#4 2014-11-01 15:12:56

runical
Member
From: The Netherlands
Registered: 2012-03-03
Posts: 896

Re: [solved] LANG not set correct

What do

localectl status

and

localectl list-locales

give you?

Last edited by runical (2014-11-01 15:13:44)

Offline

#5 2014-11-01 16:48:10

aligator
Member
Registered: 2013-10-07
Posts: 75

Re: [solved] LANG not set correct

johannes@arch ~ % localectl list-locales
de_DE
de_DE.iso88591
de_DE.utf8
deutsch
german
johannes@arch ~ % localectl status      
   System Locale: LANG=de_DE.UTF-8
       VC Keymap: de-latin1
      X11 Layout: n/a

Offline

#6 2014-11-01 16:58:22

runical
Member
From: The Netherlands
Registered: 2012-03-03
Posts: 896

Re: [solved] LANG not set correct

Hmm, that should be correct, although I don't know where the "deutch" and "german" entries come from. You did reboot/relogin after changing the locale, right?

Do you by any chance have a ~/.config/locale.conf or ~/XDG_CONFIG_HOME/locale.conf file with the incorrect value?

Last edited by runical (2014-11-01 16:58:57)

Offline

#7 2014-11-01 17:38:21

aligator
Member
Registered: 2013-10-07
Posts: 75

Re: [solved] LANG not set correct

Yes, I did a reboot.

And I don't have these files.

Offline

#8 2014-11-01 21:48:17

runical
Member
From: The Netherlands
Registered: 2012-03-03
Posts: 896

Re: [solved] LANG not set correct

Hmm, that is strange. There should be no problem then. You can try using localectl to set the locale, but that should do is set /etc/locale.conf.

I'm currently at a loss. Sorry.

Offline

#9 2014-11-01 22:58:19

foutrelis
Developer
From: Athens, Greece
Registered: 2008-07-28
Posts: 705
Website

Re: [solved] LANG not set correct

You can check if you have "$HOME/.config/locale.conf" which is consulted before /etc/locale.conf. Also check your $HOME/.bash_profile and $HOME/.bashrc for any LANG definitions.

If that fails, I guess you could start grepping stuff (/etc, $HOME, etc.) for "dde_DE"; it must come from somewhere...

Offline

#10 2014-11-02 12:39:39

aligator
Member
Registered: 2013-10-07
Posts: 75

Re: [solved] LANG not set correct

I have found the file /etc/environment

#
# This file is parsed by pam_env module
#
# Syntax: simple "KEY=VAL" pairs on separate lines
#
LANG=dde_DE.utf8

removing this line fixes it.
Thank you!

Last edited by aligator (2014-11-02 12:42:05)

Offline

Board footer

Powered by FluxBB