Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problem mit locale LC_ALL (gelöst)
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
andi_s
Apprentice
Apprentice


Joined: 10 Feb 2005
Posts: 226
Location: Germany

PostPosted: Sun Jan 12, 2014 10:18 am    Post subject: Problem mit locale LC_ALL (gelöst) Reply with quote

Hallo,

mein System soll auf Englisch laufen, bis auf einige Ausnahmen.

Code:

#cat /etc/env.d/02locale
LANG="en_US.UTF-8"
GDM_LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LC_CTYPE="de_DE.UTF-8"
LC_NUMERIC="de_DE.UTF-8"
LC_TIME="de_DE.UTF-8"
LC_COLLATE="de_DE.UTF-8"
LC_MONETARY="de_DE.UTF-8"
LC_MESSAGES="en_US.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="en_US.UTF-8"


da LC_ALL defniert ist werden die "de_" LC_'s ignoriert, aber wenn ich LC_ALL nicht definiere, dann wird LC_ALL automatisch auf "de_" gesetzt

Code:

# env-update && source /etc/profile
# locale
...
LC_ALL="de_DE.UTF-8"
...


in ~./bashrc z.B. LC_TIME="de_DE.UTF-8" zu definieren funktioniert natürlich ebenfalls nicht, da ja LC_ALL definiert ist

Ich habe also immer entweder ein System mit deutscher oder englischer LC_ALL.

Meine Frage ist nun wie bekomme ich das hin bzw. wie kann ich verhindern das LC_ALL automatisch definiert wird???

Danke


Last edited by andi_s on Tue Jan 14, 2014 4:47 pm; edited 1 time in total
Back to top
View user's profile Send private message
firefly
Watchman
Watchman


Joined: 31 Oct 2002
Posts: 5165

PostPosted: Sun Jan 12, 2014 11:31 am    Post subject: Reply with quote

indem du LC_ALL aus profile entfernst? Denn das hat bestimmt gentoo selbst nicht gesetzt
_________________
Ein Ring, sie zu knechten, sie alle zu finden,
Ins Dunkel zu treiben und ewig zu binden
Im Lande Mordor, wo die Schatten drohn.
Back to top
View user's profile Send private message
Marlo
Veteran
Veteran


Joined: 26 Jul 2003
Posts: 1591

PostPosted: Sun Jan 12, 2014 5:50 pm    Post subject: Reply with quote

gehe zu google und gib in der Suche ein:

gentoo localization wiki

Dann must du wissen ob du openrc oder systemd benutzt und ob du KDE oder Gnome hast.
Und wie firefly schon sagte, LC_ALL wird nicht gesetzt.
_________________
------------------------------------------------------------------
http://radio.garden/
Back to top
View user's profile Send private message
firefly
Watchman
Watchman


Joined: 31 Oct 2002
Posts: 5165

PostPosted: Sun Jan 12, 2014 6:07 pm    Post subject: Reply with quote

Marlo wrote:
Und wie firefly schon sagte, LC_ALL wird nicht gesetzt.

In seinem falle wird diese env Variable schon gesetzt nur wird dies nicht standardmäßig gemacht.
_________________
Ein Ring, sie zu knechten, sie alle zu finden,
Ins Dunkel zu treiben und ewig zu binden
Im Lande Mordor, wo die Schatten drohn.
Back to top
View user's profile Send private message
andi_s
Apprentice
Apprentice


Joined: 10 Feb 2005
Posts: 226
Location: Germany

PostPosted: Tue Jan 14, 2014 1:10 pm    Post subject: Reply with quote

also das gentoo-localization-wiki hatte ich natürlich schon vor dem posten gelesen...
und dort wird eben empfohlen LC_ALL nicht zu definieren...

bisher bin ich davon ausgegeganen das /etc/env.d/02locale die einzige config ist, die ich editieren muss, aber scheinbar hatte ich noch eine altlast im system...

Code:

/etc/environment:LC_ALL=de_DE.UTF-8


nun funktioniert es - danke!

wird /etc/environment eigentlich noch benötigt?
Quote:

# This file is parsed by pam_env module
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum