--- /usr/libexec/munin/munin-graph.old 2008-11-04 03:36:27.000000000 +0200 +++ /usr/libexec/munin/munin-graph.old 2009-07-30 20:07:59.000000000 +0300 @@ -29,6 +29,7 @@ use Digest::MD5; use Getopt::Long; use Time::HiRes; +if ($RRDs::VERSION >= 1.3) { use Encode; } my $graph_time= Time::HiRes::time; my $DEBUG = 0; @@ -851,6 +852,15 @@ } print "\n\nrrdtool \"graph\" \"", join ("\"\n\t\"",@complete), "\"\n" if $DEBUG; + + # Since version 1.3 rrdtool uses libpango which needs its input + # as utf8 string. So we assume that every input is in latin1 + # and decode it to perl's internal representation and then to utf8. + if ( $RRDs::VERSION >= 1.3 ) { + @complete = map { + $_ = encode("utf8", (decode("latin1", $_))); + } @complete; + } # Make sure directory exists munin_mkdir_p ($picdirname, 0777);