aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorNicolas Vigier <boklm@mageia.org>2013-07-16 22:13:03 +0000
committerNicolas Vigier <boklm@mageia.org>2013-07-16 22:13:03 +0000
commitdedf7fae7dd0041572a8a5df89c52e310262b097 (patch)
treebf81e423cff60505f87913a195dcdb2d42b76d30 /lib
parent1a7e6c9479cfd59a40fb32ee7f9a2d66f1f327b4 (diff)
downloadmgaadvisories-dedf7fae7dd0041572a8a5df89c52e310262b097.tar
mgaadvisories-dedf7fae7dd0041572a8a5df89c52e310262b097.tar.gz
mgaadvisories-dedf7fae7dd0041572a8a5df89c52e310262b097.tar.bz2
mgaadvisories-dedf7fae7dd0041572a8a5df89c52e310262b097.tar.xz
mgaadvisories-dedf7fae7dd0041572a8a5df89c52e310262b097.zip
Set template output to utf8
Diffstat (limited to 'lib')
-rw-r--r--lib/MGA/Advisories.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/MGA/Advisories.pm b/lib/MGA/Advisories.pm
index b9e3efc..b47e11d 100644
--- a/lib/MGA/Advisories.pm
+++ b/lib/MGA/Advisories.pm
@@ -194,7 +194,9 @@ sub process_template {
my ($template, $src, $vars, $dest, $ext) = @_;
foreach my $extension ($ext ? $ext : @{$config->{output_format}}) {
next unless -f "$config->{tmpl_dir}/$src.$extension";
- $template->process("$src.$extension", $vars, ref $dest ? $dest : "$dest.$extension")
+ $template->process("$src.$extension", $vars,
+ ref $dest ? $dest : "$dest.$extension",
+ binmode => ':utf8')
|| die $template->error, "\n";
}
}