You are not logged in.

#1 2013-05-05 09:14:06

nTia89
Banned
From: varese, italy
Registered: 2008-12-22
Posts: 1,230

system ignore locale.conf

hi to everybody,

I have a very annoying problem:
setting up LANG via /etc/locale.conf (because I want system-wide configuration) is ignored
while setting up via ~/.bashrc works ...

this is what I get, without

export LANG=en_GB.UTF-8

in the ~/.bashrc, but with

LANG="en_GB.UTF-8"

in my /etc/locale.conf

[mattia@arch-dekstop ~]$ locale -a
C
POSIX
en_GB.utf8
[mattia@arch-dekstop ~]$ 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=

instead with it in my ~/.bashrc, I get:

[mattia@arch-dekstop ~]$ locale -a
C
en_GB.utf8
POSIX
[mattia@arch-dekstop ~]$ locale
LANG=en_GB.UTF-8
LC_CTYPE="en_GB.UTF-8"
LC_NUMERIC="en_GB.UTF-8"
LC_TIME="en_GB.UTF-8"
LC_COLLATE="en_GB.UTF-8"
LC_MONETARY="en_GB.UTF-8"
LC_MESSAGES="en_GB.UTF-8"
LC_PAPER="en_GB.UTF-8"
LC_NAME="en_GB.UTF-8"
LC_ADDRESS="en_GB.UTF-8"
LC_TELEPHONE="en_GB.UTF-8"
LC_MEASUREMENT="en_GB.UTF-8"
LC_IDENTIFICATION="en_GB.UTF-8"
LC_ALL=

+pc: custom | AMD Opteron 175 | nForce4 Ultra | 2GB ram DDR400 | nVidia 9800GT 1GB | ArchLinux x86_64 w/ openbox
+laptop: Apple | MacBook (2,1) | 2GB ram | Mac OS X 10.4 -> DIED
+ultrabook: Dell | XPS 13 (9343) | 8GB ram | 256GB ssd | FullHD display | Windows 8.1 64bit ArchLinux x86_64 w/ Gnome

Offline

#2 2013-05-05 09:43:50

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

Re: system ignore locale.conf

I found two similar threads:
https://bbs.archlinux.org/viewtopic.php … 1#p1252841
https://bbs.archlinux.org/viewtopic.php … 5#p1153155
Both blame incorrect sourcing /etc/profile

What's the output of 'localectl list-locales' and 'localectl status'?

Offline

#3 2013-05-05 09:49:01

nTia89
Banned
From: varese, italy
Registered: 2008-12-22
Posts: 1,230

Re: system ignore locale.conf

[mattia@arch-dekstop ~]$ localectl list-locales
en_GB.utf8
[mattia@arch-dekstop ~]$ localectl status
   System Locale: LANG=en_GB.UTF-8
       VC Keymap: it
      X11 Layout: n/a

+pc: custom | AMD Opteron 175 | nForce4 Ultra | 2GB ram DDR400 | nVidia 9800GT 1GB | ArchLinux x86_64 w/ openbox
+laptop: Apple | MacBook (2,1) | 2GB ram | Mac OS X 10.4 -> DIED
+ultrabook: Dell | XPS 13 (9343) | 8GB ram | 256GB ssd | FullHD display | Windows 8.1 64bit ArchLinux x86_64 w/ Gnome

Offline

Board footer

Powered by FluxBB