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

Zdenek Kabelac zkabelac at redhat.com
Sat Mar 5 10:50:29 UTC 2016


Dne 4.3.2016 v 07:59 Vratislav Podzimek napsal(a):
> 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]
>

Hi

Thanks for noticing - the bug has been addressed directly in daemon init code:
https://www.redhat.com/archives/lvm-devel/2016-March/msg00065.html

Regards

Zdenek




More information about the lvm-devel mailing list