diff options
author | lpsolit%gmail.com <> | 2008-04-03 23:58:28 +0200 |
---|---|---|
committer | lpsolit%gmail.com <> | 2008-04-03 23:58:28 +0200 |
commit | 59d76227caa0d8304f243bd8d2d8534ed6d80e81 (patch) | |
tree | 7803da80cbf7dc75851f032bdfacb9add8de5378 /attachment.cgi | |
parent | 43b7dc314234e476a80d9acbd07292d7286cca5a (diff) | |
download | bugzilla-59d76227caa0d8304f243bd8d2d8534ed6d80e81.tar.gz bugzilla-59d76227caa0d8304f243bd8d2d8534ed6d80e81.tar.xz |
Bug 410902: Some characters are mangled in diff and interdiff modes when viewing patches - Patch by Frédéric Buclin <LpSolit@gmail.com> r=shimono, r=mkanat a=LpSolit
Diffstat (limited to 'attachment.cgi')
-rwxr-xr-x | attachment.cgi | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/attachment.cgi b/attachment.cgi index 5f29649f3..937087a51 100755 --- a/attachment.cgi +++ b/attachment.cgi @@ -247,9 +247,7 @@ sub view { print $cgi->header(-type=>"$contenttype; name=\"$filename\"", -content_disposition=> "inline; filename=\"$filename\"", -content_length => $attachment->datasize); - if (Bugzilla->params->{'utf8'}) { - binmode STDOUT, ':raw'; # Turn off UTF8 encoding. - } + disable_utf8(); print $attachment->data; } |