]> git.donarmstrong.com Git - debbugs.git/commitdiff
default charset to UTF-8 when it isn't defined don/cookies
authorDon Armstrong <don@donarmstrong.com>
Fri, 15 Mar 2013 22:23:32 +0000 (15:23 -0700)
committerDon Armstrong <don@donarmstrong.com>
Fri, 15 Mar 2013 22:23:32 +0000 (15:23 -0700)
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");
     }