]> git.proxmox.com Git - pve-common.git/commitdiff
Overwite LC_ALL instead of LANG
authorDietmar Maurer <dietmar@proxmox.com>
Tue, 30 Aug 2011 05:26:51 +0000 (07:26 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 30 Aug 2011 05:26:51 +0000 (07:26 +0200)
This also works when user sets LC_ environment variables.

data/PVE/Tools.pm

index 6eaf68c7ac3422bd74db51f0f8899ffecf6e147b..d80524013b040b3f0e2b1acdc028a4191484ed2f 100644 (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";