Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 478190 - sys-apps/systemd does not set locale correctly
Summary: sys-apps/systemd does not set locale correctly
Status: RESOLVED DUPLICATE of bug 465468
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-26 00:53 UTC by redneb
Modified: 2013-09-17 07:23 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
for reference, here's the complete /etc/profile.d/locale.sh from arch linux (locale.sh,1.11 KB, text/plain)
2013-07-26 00:57 UTC, redneb
Details

Note You need to log in before you can comment on or make changes to this bug.
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 ***