[systemd-devel] System locale not set in tty
Lennart Poettering
lennart at poettering.net
Wed Apr 23 13:19:42 PDT 2014
On Tue, 25.03.14 17:35, Armin K. (krejzi at email.com) wrote:
> 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?
>
Yeah, we explicitly don't pass the locale to gettys on the VC:
http://cgit.freedesktop.org/systemd/systemd/commit/?id=1640944a847249d3f5f0fb0d5a5f820a82efaed0
You basically have to pull in the file from a .profile or suchlike.
Lennart
--
Lennart Poettering, Red Hat
More information about the systemd-devel
mailing list