From: Don Armstrong Date: Tue, 12 Mar 2013 20:48:11 +0000 (-0700) Subject: decode_utf8 the html record before calling decode_rfc1522; use Debbugs::UTF8 X-Git-Tag: release/2.6.0~313^2~7 X-Git-Url: https://git.donarmstrong.com/?p=debbugs.git;a=commitdiff_plain;h=b33403cc853dc5f8376ace6d4411a59ed9c49692 decode_utf8 the html record before calling decode_rfc1522; use Debbugs::UTF8 --- diff --git a/Debbugs/CGI/Bugreport.pm b/Debbugs/CGI/Bugreport.pm index e4886d1..707c3a0 100644 --- a/Debbugs/CGI/Bugreport.pm +++ b/Debbugs/CGI/Bugreport.pm @@ -34,7 +34,8 @@ use IO::Scalar; use Params::Validate qw(validate_with :types); use Debbugs::MIME qw(decode_rfc1522 create_mime_message); use Debbugs::CGI qw(:url :html :util); -use Debbugs::Common qw(globify_scalar english_join convert_to_utf8); +use Debbugs::Common qw(globify_scalar english_join); +use Debbugs::UTF8; use Debbugs::Config qw(:config); use POSIX qw(strftime); use Encode qw(decode_utf8); @@ -334,7 +335,7 @@ sub handle_record{ local $_ = $record->{type}; if (/html/) { # $record->{text} is not in perl's internal encoding; convert it - my $text = decode_utf8(decode_rfc1522($record->{text})); + my $text = decode_rfc1522(decode_utf8($record->{text})); my ($time) = $text =~ //; my $class = $text =~ /^(?:Acknowledgement|Reply|Information|Report|Notification)/m ? 'infmessage':'msgreceived'; $output .= $text;