projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix mrtg script to use LANG=C
[spider.git]
/
cmd
/
mrtg.pl
diff --git
a/cmd/mrtg.pl
b/cmd/mrtg.pl
index 9e6112c64fb142c627d8bf3253dfa11b3e756104..93adf33233f69526bc9a8258c46b7b0b7f0f8952 100644
(file)
--- 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);