diff options
-rw-r--r-- | NEWS | 3 | ||||
-rw-r--r-- | lib/MGA/Advisories.pm | 4 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,6 @@ + +- set template output to utf8 + Version 0.12 - add stylesheet and mageia navigation bar 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"; } } |