From: Don Armstrong Date: Sat, 7 Jul 2012 20:44:58 +0000 (-0700) Subject: use :raw for the mail messages X-Git-Tag: release/2.6.0~376^2~2 X-Git-Url: https://git.donarmstrong.com/?p=debbugs.git;a=commitdiff_plain;h=764af08d720978fc78dacc499b0440b2e476c71b use :raw for the mail messages --- diff --git a/cgi/bugreport.cgi b/cgi/bugreport.cgi index 0a66311..de4ec76 100755 --- a/cgi/bugreport.cgi +++ b/cgi/bugreport.cgi @@ -171,6 +171,7 @@ if (defined($msg) and ($msg-1) <= $#records) { } my @log; if ( $mbox ) { + binmode(STDOUT,":raw"); my $date = strftime "%a %b %d %T %Y", localtime; if (@records > 1) { print $q->header(-type => "text/plain", @@ -245,6 +246,7 @@ END else { if (defined $att and defined $msg and @records) { + binmode(STDOUT,":raw"); $msg_num++; print handle_email_message($records[0]->{text}, ref => $ref,