about summary refs log tree commit homepage
path: root/lib/PublicInbox
diff options
context:
space:
mode:
Diffstat (limited to 'lib/PublicInbox')
-rw-r--r--lib/PublicInbox/Inbox.pm1
-rw-r--r--lib/PublicInbox/WwwListing.pm2
2 files changed, 3 insertions, 0 deletions
diff --git a/lib/PublicInbox/Inbox.pm b/lib/PublicInbox/Inbox.pm
index 002b980f..c295b267 100644
--- a/lib/PublicInbox/Inbox.pm
+++ b/lib/PublicInbox/Inbox.pm
@@ -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)';
diff --git a/lib/PublicInbox/WwwListing.pm b/lib/PublicInbox/WwwListing.pm
index 38a37dda..a416d24f 100644
--- a/lib/PublicInbox/WwwListing.pm
+++ b/lib/PublicInbox/WwwListing.pm
@@ -159,6 +159,8 @@ sub manifest_add ($$;$$) {
         chomp(my $desc = try_cat("$git_dir/description"));
         $owner = undef if $owner eq '';
         $desc = 'Unnamed repository' if $desc eq '';
+        utf8::decode($desc);
+        utf8::decode($owner);
 
         # templates/hooks--update.sample and git-multimail in git.git
         # only match "Unnamed repository", not the full contents of