From: Don Armstrong Date: Sat, 30 Nov 2013 04:35:40 +0000 (-0800) Subject: eliminate convert to utf8 warning X-Git-Url: https://git.donarmstrong.com/?p=debbugs.git;a=commitdiff_plain;h=1d0cc46d3f58cd40458c4f1671ce669cd805e3e2 eliminate convert to utf8 warning --- diff --git a/Debbugs/UTF8.pm b/Debbugs/UTF8.pm index 0ad284d..0c4d336 100644 --- a/Debbugs/UTF8.pm +++ b/Debbugs/UTF8.pm @@ -179,7 +179,8 @@ sub convert_to_utf8 { # if there's an à (0xC3), it's probably something # horrible, and we shouldn't try to convert it. if (defined $call_back_data and $call_back_data !~ /\x{C3}/) { - warn "failed to convert to utf8 (charset: $charset, data: $data), but succeeded with ISO8859-1: ".encode_utf8($call_back_data); + # this warning produces far too much useless output; elminating it + # warn "failed to convert to utf8 (charset: $charset, data: $data), but succeeded with ISO8859-1: ".encode_utf8($call_back_data); return $call_back_data; } }