From: Dietmar Maurer Date: Tue, 30 Aug 2011 05:26:51 +0000 (+0200) Subject: Overwite LC_ALL instead of LANG X-Git-Url: https://git.proxmox.com/?p=pve-common.git;a=commitdiff_plain;h=329351e200de8b874ca91011b8ba3c83b5046164 Overwite LC_ALL instead of LANG This also works when user sets LC_ environment variables. --- diff --git a/data/PVE/Tools.pm b/data/PVE/Tools.pm index 6eaf68c..d805240 100644 --- a/data/PVE/Tools.pm +++ b/data/PVE/Tools.pm @@ -212,7 +212,7 @@ sub run_command { my $orig_pid = $$; eval { - local $ENV{LANG} = $lang; + local $ENV{LC_ALL} = $lang; # suppress LVM warnings like: "File descriptor 3 left open"; local $ENV{LVM_SUPPRESS_FD_WARNINGS} = "1";