[lvm-devel] [PATCH] Run the DBus daemon with the "C" locale

Vratislav Podzimek vpodzime at redhat.com
Fri Mar 4 06:59:28 UTC 2016


Otherwise it uses the system default which may be e.g. cs_CZ.UTF-8 causing the
daemon to fail when parsing output from the CLI tools - it for example gets 1,5G
instead of 1.5G.
---
 scripts/lvm2_lvmdbusd_systemd_red_hat.service.in | 1 +
 1 file changed, 1 insertion(+)

diff --git a/scripts/lvm2_lvmdbusd_systemd_red_hat.service.in b/scripts/lvm2_lvmdbusd_systemd_red_hat.service.in
index d3ad870..b7e9ace 100644
--- a/scripts/lvm2_lvmdbusd_systemd_red_hat.service.in
+++ b/scripts/lvm2_lvmdbusd_systemd_red_hat.service.in
@@ -5,6 +5,7 @@ Documentation=man:lvmdbusd(8)
 [Service]
 Type=dbus
 BusName=com.redhat.lvmdbus1
+Environment="LC_ALL=C"
 ExecStart=@sbindir@/lvmdbusd --udev
 
 [Install]
-- 
2.5.0




More information about the lvm-devel mailing list