about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2023-02-09 12:30:59 +0000
committerEric Wong <e@80x24.org>2023-02-09 22:09:38 +0000
commit0830817c132cb105291104937a645d30efe06db1 (patch)
tree1304da003c7d190fce402d288cd97c8fa770c0ad
parent385a9f395604b0ec99190df2f1a0fb26c896f585 (diff)
downloadpublic-inbox-0830817c132cb105291104937a645d30efe06db1.tar.gz
This makes the verbose progress output look nicer, but doesn't
affect the actual config file generation.
-rw-r--r--lib/PublicInbox/LeiMirror.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/PublicInbox/LeiMirror.pm b/lib/PublicInbox/LeiMirror.pm
index f7184240..afe12bb3 100644
--- a/lib/PublicInbox/LeiMirror.pm
+++ b/lib/PublicInbox/LeiMirror.pm
@@ -259,7 +259,8 @@ sub run_reap {
 sub start_cmd {
         my ($self, $cmd, $opt, $fini) = @_;
         do_reap($self);
-        $self->{lei}->qerr("# @$cmd");
+        utf8::decode(my $msg = "# @$cmd");
+        $self->{lei}->qerr($msg);
         return if $self->{dry_run};
         $LIVE->{spawn($cmd, undef, $opt)} = [ \&reap_cmd, $self, $cmd, $fini ]
 }