]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 464992: Binary attachments, graphical reports and new charts are not displayed...
authorlpsolit%gmail.com <>
Thu, 15 Jan 2009 01:16:04 +0000 (01:16 +0000)
committerlpsolit%gmail.com <>
Thu, 15 Jan 2009 01:16:04 +0000 (01:16 +0000)
Bugzilla/Util.pm
chart.cgi
report.cgi

index 7e5063b8c6bb603eb6fd74e60ef4bc34bce42442..4433939d9b86c65d5e4bfd22ece547354ad8ac8d 100644 (file)
@@ -592,7 +592,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.
     }
 }
 
index 70eeb814a3c11504df511c4f8abf0f0a24a44ad1..c74df4f7b30c5dc5d9e8dfa430df9889800fde57 100755 (executable)
--- a/chart.cgi
+++ b/chart.cgi
@@ -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());
 }
index 2b9cb61ad00d6056367523bcf689ab8d5db59979..913f85dde13d891549ff85b5996ddc2ebd63b2ef 100755 (executable)
@@ -319,6 +319,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());