]> git.donarmstrong.com Git - debbugs.git/commitdiff
when we fail to commit to utf8, output the charset and data
authorDon Armstrong <don@donarmstrong.com>
Wed, 20 Mar 2013 20:37:20 +0000 (13:37 -0700)
committerDon Armstrong <don@donarmstrong.com>
Wed, 20 Mar 2013 20:37:20 +0000 (13:37 -0700)
Debbugs/UTF8.pm

index 45da58fa7acdb4956e0aa27cff2313a609027836..7ab8f9cb619954a1e1fbe6f3056fdc3f99397d3a 100644 (file)
@@ -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);
     }