X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Debbugs%2FMIME.pm;h=05534e3e054c47d2cb281f683aaacf1a0ac7a52e;hb=4ac94f292bfbf36863795ed9d695be7ad2b5b344;hp=bc47ca3a7b0a94e549fafd49dd473505fa3d7157;hpb=de30c269182d7c865eb3d1258387485dd5131819;p=debbugs.git diff --git a/Debbugs/MIME.pm b/Debbugs/MIME.pm index bc47ca3..05534e3 100644 --- a/Debbugs/MIME.pm +++ b/Debbugs/MIME.pm @@ -314,7 +314,7 @@ sub encode_rfc1522 { if (length $encoded > 75) { # Turn utf8 into the internal perl representation # so . is a character, not a byte. - my $tempstr = decode_utf8($word,Encode::FB_DEFAULT); + my $tempstr = is_utf8($word)?$word:decode_utf8($word,Encode::FB_DEFAULT); my @encoded; # Strip it into 10 character long segments, and encode # the segments