Overwite LC_ALL instead of LANG

This also works when user sets LC_ environment variables.
This commit is contained in:
Dietmar Maurer 2011-08-30 07:26:51 +02:00
parent d405237d0c
commit 329351e200

View File

@ -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";