From: Don Armstrong Date: Wed, 20 Mar 2013 20:37:20 +0000 (-0700) Subject: when we fail to commit to utf8, output the charset and data X-Git-Tag: release/2.6.0~280^2~14 X-Git-Url: https://git.donarmstrong.com/?p=debbugs.git;a=commitdiff_plain;h=c1e75d95c13f6eee442bbe0e383aa3944a2cbe3b when we fail to commit to utf8, output the charset and data --- diff --git a/Debbugs/UTF8.pm b/Debbugs/UTF8.pm index 45da58f..7ab8f9c 100644 --- a/Debbugs/UTF8.pm +++ b/Debbugs/UTF8.pm @@ -178,7 +178,7 @@ sub convert_to_utf8 { if (not defined $retval or $retval < 0 ) { - warn "failed to convert to utf8"; + warn "failed to convert to utf8 (charset: $charset, data: $data)"; # Fallback to encode, which will probably also fail. return __fallback_convert_to_utf8($data,$charset); }