You are not logged in.

#1 2014-01-28 17:14:12

nerfingen
Member
Registered: 2014-01-28
Posts: 8

umlaut problem after locale change

I changed my locale from german to us english and now the umlauts don't work. My problem is that I used one of these in my password, so i can't use sudo anymore.
(Afterwards using this in a password was not a clever idea, but now it is too late)

locale
LANG=de_DE
LC_CTYPE="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_PAPER="C"
LC_NAME="C"
LC_ADDRESS="C"
LC_TELEPHONE="C"
LC_MEASUREMENT="C"
LC_IDENTIFICATION="C"
LC_ALL=C

localectl
   System Locale: LANG=de_DE.UTF-8
                  LC_COLLATE=C
       VC Keymap: de-latin1-nodeadkeys
      X11 Layout: n/a

if you need more output just aks.

nerfingen

Offline

#2 2014-01-28 17:23:23

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

Re: umlaut problem after locale change

Change the locale to something with utf. C doesn't do Unicode.

nerfingen wrote:

I changed my locale from german to us english

The 'C' locale is not the same as e.g. en_US.UTF-8.

Last edited by karol (2014-01-28 17:25:12)

Offline

#3 2014-01-28 17:39:46

nerfingen
Member
Registered: 2014-01-28
Posts: 8

Re: umlaut problem after locale change

Ok I think i should post my /etc/locale.gen and /etc/locale.conf

/etc/locale.conf

LANG=de_DE.UTF-8
LC_COLLATE=C

/etc/locale.gen (incomplete)

...
#de_DE.UTF-8 UTF-8 
#de_DE ISO-8859-1 
#de_DE@euro ISO-8859-15
...

en_US.UTF-8 UTF-8 
en_US ISO-8859-1 

....

every other locale is commented like the german one.

and afterwards i called locale-gen

and then I end up in this trouble

Offline

#4 2014-01-28 17:46:17

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

Re: umlaut problem after locale change

Post the output of 'locale' and 'locale -a'.
Don't set 'LC_ALL=C', you can leave it empty.

Offline

#5 2014-01-28 18:06:44

nerfingen
Member
Registered: 2014-01-28
Posts: 8

Re: umlaut problem after locale change

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=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"
LC_ALL=


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
C
POSIX
en_US
en_US.iso88591
en_US.utf8

Offline

#6 2014-01-28 18:08:50

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

Re: umlaut problem after locale change

Look, you have to decide whether you use German or English. 'locale -a' says you uncommented only English, but 'locale' says you've set your locale to use German.

Offline

#7 2014-01-28 18:15:17

nerfingen
Member
Registered: 2014-01-28
Posts: 8

Re: umlaut problem after locale change

Ok then I've two questions. How did I end up there?
And more Important how did i get it running again?

Offline

#8 2014-01-28 18:15:58

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

Re: umlaut problem after locale change

In your first post most of the 'locale' output said 'C', now it says 'de_DE.UTF-8' - you've told your system you want to use German.
Does localectl still say you've set it to use German? Why not change it to English then? Read the wiki if you got confused somewhere or skipped a step when changing the locale.

Offline

#9 2014-01-28 19:31:54

nerfingen
Member
Registered: 2014-01-28
Posts: 8

Re: umlaut problem after locale change

I don't now exactly why or how but I get it running again by some strange copy past things to get the umlauts
to the sudo password prompt and fixed it with localectl. I still don't know exactly what was going wrong here.
But now it works again. If someone knows what exactly was going wrong here please tell me.

But thanks for the great and fast help.

nerfingen

Offline

#10 2014-01-28 19:34:28

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

Re: umlaut problem after locale change

Did you edit /etc/locale.conf to set it to English?

Offline

Board footer

Powered by FluxBB