From: Dirk Koopman Date: Sat, 22 Sep 2007 15:08:00 +0000 (+0200) Subject: fix mrtg script X-Git-Url: http://www.dxcluster.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=bdca552e807c5599317c08b7c54e993e43bfcaec;hp=9f4c467f60ec71c0bbb2b27f91ca7d86a40b4597;p=spider.git fix mrtg script --- diff --git a/cmd/mrtg.pl b/cmd/mrtg.pl index 9e6112c6..93adf332 100644 --- a/cmd/mrtg.pl +++ b/cmd/mrtg.pl @@ -142,5 +142,11 @@ if ($want{wcy} || $want{all}) { # # do the mrtg thing # -my @out = $mc->run unless $want{nomrtg}; + +my @out; +{ +local %ENV; +$ENV{LANG} = 'C'; +@out = $mc->run unless $want{nomrtg}; +} return (1, @out);