X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;ds=sidebyside;f=Debbugs%2FCGI%2FBugreport.pm;h=707c3a0d68a315d6e7791b265a04312be1b16522;hb=b33403cc853dc5f8376ace6d4411a59ed9c49692;hp=e4886d163d6a83d95780a91b0f3aef438f653a56;hpb=37fa4f5e9b7218b8a909f2c0502a12c6b7f5303e;p=debbugs.git 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;