]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/Inbox.pm
treat $INBOX_DIR/description and gitweb.owner as UTF-8
[public-inbox.git] / lib / PublicInbox / Inbox.pm
index 002b980f40574e266dfc68b065e8bd733016eb4d..c295b2677e48299cbfbacfc53f36136ad73f479f 100644 (file)
@@ -223,6 +223,7 @@ sub description {
                my $desc = try_cat("$self->{inboxdir}/description");
                local $/ = "\n";
                chomp $desc;
+               utf8::decode($desc);
                $desc =~ s/\s+/ /smg;
                $desc eq '' ? undef : $desc;
        }) // '($INBOX_DIR/description missing)';