[Pkg-sysvinit-devel] Bug#748245: Do not pass LANG and LC_* to init script
Vincent Bernat
bernat at debian.org
Thu May 15 14:05:56 UTC 2014
Package: sysvinit-utils
Version: 2.88dsf-53
Severity: wishlist
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
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.
Another possible consequence is a service that will expect different
inputs. For example, when using fscanf(3) with LC_NUMERIC set to
fr_FR, floating-point numbers will expect a comma instead of a
dot. This may trigger difficult to diagnose bugs in some software. I
remember getting that with snmpd.
Therefore, I think this is better to use a fixed value from
/etc/default/locale.
- -- System Information:
Debian Release: jessie/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (101, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.14-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=fr_FR.utf8, LC_CTYPE=fr_FR.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages sysvinit-utils depends on:
ii libc6 2.18-6
ii libselinux1 2.3-1
ii startpar 0.59-3
sysvinit-utils recommends no packages.
Versions of packages sysvinit-utils suggests:
pn bootlogd <none>
pn sash <none>
- -- Configuration Files:
/etc/init/startpar-bridge.conf changed [not included]
- -- no debconf information
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
iQIcBAEBCAAGBQJTdMnAAAoJEJWkL+g1NSX5RWkP/jeISiUsSWSV2SrL5AXJcLBL
gcl+VZXiCLAOsqpOh4HySRn99E+CRUMmXNJpMvdM+Q3JfUOJwA85iMbcL7NAYWIY
NcoqV2y7kgjMOU2G6DW6JUXC4BsQ61DSpyi4jVWG1683LUHxy9YN11Xc+c5DkqT2
PPSfnZvOsyo0o4NoZzgcypylcdx/0Bf1EAErGhwvH1fiX/wrPuwdJk5u9QJ3zY7N
IOxy2tK+1QyMwMItzYd9QY0R+vJknMAtHj8YWXJMLsa2YNdYTSXfFxTEO/L1/f2Z
HeodOgvXhGIMG1Law9H2c9uDqiBNLPX1QlLBZApGBK6rijKCXKK1cMHw6cEOJhGv
AMVkOMQ1l+AyVRpQXwDC4EoaZl01uUujUqu5FDBR/jrrBF5xiCO9auszrM+1nKlT
i81LKBAAuVZ0aCL7uIHEHfZl56+W5/8/1anMC2U3GjwUGH0zrf5/c2R3XxmqwX/U
b1ZwUXfXQmdiG/MiuxMDpEkjK93TeJwYxyNl42wdjhqn2wwK1ZJBgXLKkY0o1G2N
4QL4UocOb5+1ohQ7ec5hUAyJw/n+4xQtRPgZneGqBkBE8F4phAS34Aau+WB3+DGW
vEddVPB+6nx/z4yOuFY2Odev/B3GZz/LVFe1k/afXqsywqnLhSyJIAV6VGWbTXba
cXShy3LvseVx4iKRVv7j
=Q6UY
-----END PGP SIGNATURE-----
More information about the Pkg-sysvinit-devel
mailing list