From: Don Armstrong Date: Fri, 15 Mar 2013 22:23:32 +0000 (-0700) Subject: default charset to UTF-8 when it isn't defined X-Git-Tag: release/2.6.0~300 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=refs%2Fheads%2Fdon%2Fcookies;p=debbugs.git default charset to UTF-8 when it isn't defined --- diff --git a/Debbugs/UTF8.pm b/Debbugs/UTF8.pm index 74a4042..45da58f 100644 --- a/Debbugs/UTF8.pm +++ b/Debbugs/UTF8.pm @@ -151,7 +151,7 @@ sub convert_to_utf8 { cluck("utf8 flag is set when calling convert_to_utf8"); return $data; } - $charset = uc($charset); + $charset = uc($charset//'UTF-8'); if ($charset eq 'RAW') { croak("Charset must not be raw when calling convert_to_utf8"); }