You are not logged in.

#1 2010-09-18 00:06:27

schmoemi
Member
From: Gersthofen, BY, Germany
Registered: 2004-10-17
Posts: 51
Website

no LANG for GNOME root terminal

I always wondered why my GNOME root term talks English to me although the system language is set to German. I found out that for dubious reasons in the GNOME root terminal no LANG variable is set:

[root@concorde ~]# locale
LANG=
LC_CTYPE="POSIX"
LC_NUMERIC="POSIX"
LC_TIME="POSIX"
LC_COLLATE="POSIX"
LC_MONETARY="POSIX"
LC_MESSAGES="POSIX"
LC_PAPER="POSIX"
LC_NAME="POSIX"
LC_ADDRESS="POSIX"
LC_TELEPHONE="POSIX"
LC_MEASUREMENT="POSIX"
LC_IDENTIFICATION="POSIX"
LC_ALL=

I wonder how this can be as the systemwide locale is set in rc.conf?


The time when Microsoft starts making something that doesn't suck will be when they start making vacuum cleaners.

Offline

#2 2010-09-18 00:14:54

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

Re: no LANG for GNOME root terminal

Try ading

export LC_MESSAGES="C"

or LANG or LC_ALL to your .bashrc. Just change "C" to whatever you need, like a German locale.

If you're running as a user, is everything OK?

Last edited by karol (2010-09-18 00:19:05)

Offline

#3 2010-09-18 20:18:56

schmoemi
Member
From: Gersthofen, BY, Germany
Registered: 2004-10-17
Posts: 51
Website

Re: no LANG for GNOME root terminal

karol wrote:

Try ading

export LC_MESSAGES="C"

or LANG or LC_ALL to your .bashrc. Just change "C" to whatever you need, like a German locale.

You mean to root's .bashrc? I already tried adding

export LANG="de_DE.utf8"

but then special symbols ä,ö,ü,ß aren't displayed correctly.

karol wrote:

If you're running as a user, is everything OK?

Yes as genuine user everything is fine.

Last edited by schmoemi (2010-09-18 20:19:16)


The time when Microsoft starts making something that doesn't suck will be when they start making vacuum cleaners.

Offline

#4 2010-09-18 20:39:45

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

Re: no LANG for GNOME root terminal

You have different locales for the user?

I remember having some problems with displaying accented characters when I've set LOCALE="en_US.UTF-8" in the rc.conf but used Polish accented letters ą, ę etc. What have you set your LOCALE in rc.conf to? Is this what you mean by saying "system language is set to German"?

I don't know if Gnome is part of the equation, I know nothing about any DE.

Offline

Board footer

Powered by FluxBB