[Pkg-sysvinit-devel] Bug#748245: Bug#748245: Do not pass LANG and LC_* to init script
Petter Reinholdtsen
pere at hungry.com
Thu May 15 14:17:01 UTC 2014
[Vincent Bernat]
> Hi!
Hi.
> Currently, service(8) is passing LANG (and LC_* for the version in
> experimental) to the init script. However, this makes starting the
> init script into a variable environment. When a user using
> LANG=de_DE.UTF-8 will restart a service, the service will switch to
> German. When someone with LANG=fr_FR.UTF-8, the service will switch to
> French.
This was introduced with bug #534300 when service was introduced in
2009 with LANG passed to init.d scripts, and #606875 which is a
request to also pass the rest of LC_* when LANG is passed on.
I believe either we pass LANG and LC_*, or we do not. Do not have
strong opinions either way, but only passing LANG without passing the
rest of LC_* seem like an obvious bug to me.
Personally, I believe the init.d script should fix the locale settings
(for example using LC_ALL=C) if the service change behaviour based on
locale settings.
Is it possible to come up with a setup that pleases everyone? Or are
the truly conflicting needs here?
--
Happy hacking
Petter Reinholdtsen
More information about the Pkg-sysvinit-devel
mailing list