]> git.donarmstrong.com Git - debbugs.git/blobdiff - Debbugs/UTF8.pm
default charset to UTF-8 when it isn't defined
[debbugs.git] / Debbugs / UTF8.pm
index 74a40427412fe402bc81bb4b9cb631e6985995f6..45da58fa7acdb4956e0aa27cff2313a609027836 100644 (file)
@@ -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");
     }