[systemd-devel] System locale not set in tty

Armin K. krejzi at email.com
Tue Mar 25 09:35:58 PDT 2014


Hello there,

I'm using stock systemd-211 release and I have noticed today that locale
isn't set anymore in tty.

My X session, which runs on tty1 has the locale correctly set up, but
when I swich to tty2 and log in, the locale is set to POSIX, LANG isn't
set at all.

Is this expected behaviour or what? Do I still need shell scripts for
parsing /etc/locale.conf and setting it like that in /etc/profile* scripts?

$ locale -a
bs_BA
bs_BA.iso88592
bs_BA.utf8
C
croatian
en_US
en_US.iso88591
en_US.utf8
hr_HR
hr_HR.iso88592
hr_HR.utf8
hrvatski
POSIX

$ locale (from X11 terminal emulator)
LANG=en_US.utf8
LC_CTYPE="en_US.utf8"
LC_NUMERIC="en_US.utf8"
LC_TIME="en_US.utf8"
LC_COLLATE="en_US.utf8"
LC_MONETARY="en_US.utf8"
LC_MESSAGES="en_US.utf8"
LC_PAPER="en_US.utf8"
LC_NAME="en_US.utf8"
LC_ADDRESS="en_US.utf8"
LC_TELEPHONE="en_US.utf8"
LC_MEASUREMENT="en_US.utf8"
LC_IDENTIFICATION="en_US.utf8"
LC_ALL=

$ locale (from tty prompt)
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=

$ localectl
   System Locale: LANG=en_US.UTF-8
       VC Keymap: croat
      X11 Layout: hr
       X11 Model: pc105
     X11 Options: terminate:ctrl_alt_bksp

Cheers.

-- 
Note: My last name is not Krejzi.


More information about the systemd-devel mailing list