Commit ee5cbb72 authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 464992: Binary attachments, graphical reports and new charts are not…

Bug 464992: Binary attachments, graphical reports and new charts are not displayed correctly on Windows - Patch by Fré©ric Buclin <LpSolit@gmail.com> r=mkanat a=LpSolit
parent 8f824bbf
......@@ -623,7 +623,7 @@ sub get_netaddr {
sub disable_utf8 {
if (Bugzilla->params->{'utf8'}) {
binmode STDOUT, ':raw'; # Turn off UTF8 encoding.
binmode STDOUT, ':bytes'; # Turn off UTF8 encoding.
}
}
......
......@@ -282,6 +282,8 @@ sub plot {
}
print $cgi->header($format->{'ctype'});
disable_utf8() if ($format->{'ctype'} =~ /^image\//);
$template->process($format->{'template'}, $vars)
|| ThrowTemplateError($template->error());
}
......
......@@ -328,6 +328,8 @@ if ($cgi->param('debug')) {
# All formats point to the same section of the documentation.
$vars->{'doc_section'} = 'reporting.html#reports';
disable_utf8() if ($format->{'ctype'} =~ /^image\//);
$template->process("$format->{'template'}", $vars)
|| ThrowTemplateError($template->error());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment