Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 478190

Summary: sys-apps/systemd does not set locale correctly
Product: Gentoo Linux Reporter: redneb <redneb>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal CC: alexander, arnaudv6
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: for reference, here's the complete /etc/profile.d/locale.sh from arch linux

Description redneb 2013-07-26 00:53:57 UTC
I migrated to systemd and following the advice of the systemd wiki page, I moved /etc/env.d/02locale to /etc/locale.conf. The problem is that now the locale is not set correctly:
* when I login using the linux console on tty1 or via ssh, no locale variable is set
* when I run bash in gnome-terminal then only LANG is set (to "en_US.UTF-8")
* when I run any graphical gnome application, then only LANG is set for that application
If I symlink /etc/env.d/02locale to /etc/locale.conf then everything works correctly but I think locale should be set in one place only.

Here's my complete locale file:

LANG="en_US.UTF-8"
LC_TIME="en_GB.UTF-8"
Comment 1 redneb 2013-07-26 00:56:32 UTC
For comparison, in arch linux with systemd, the only place where locale variables are set is /etc/locale.conf and everything works correctly. They do it by having the following lines in /etc/profile.d/locale.sh (excerpt):

if [ -r /etc/locale.conf ]; then
  . /etc/locale.conf
fi
Comment 2 redneb 2013-07-26 00:57:29 UTC
Created attachment 354224 [details]
for reference, here's the complete /etc/profile.d/locale.sh from arch linux
Comment 3 Arnaud Vallette d'Osia 2013-07-28 09:50:11 UTC
to me it's dupplicate of 465468,
except that one is not version specific in the title.
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2013-07-29 09:59:11 UTC

*** This bug has been marked as a duplicate of bug 465468 ***