]> Sergey Matveev's repositories - public-inbox.git/commitdiff
lei_mirror: show non-ASCII owner properly w/ --verbose
authorEric Wong <e@80x24.org>
Thu, 9 Feb 2023 12:30:59 +0000 (12:30 +0000)
committerEric Wong <e@80x24.org>
Thu, 9 Feb 2023 22:09:38 +0000 (22:09 +0000)
This makes the verbose progress output look nicer, but doesn't
affect the actual config file generation.

lib/PublicInbox/LeiMirror.pm

index f718424026ac11b747d45554628e3feb9c05dc52..afe12bb30dd719e545224b348575ff52b82b3f92 100644 (file)
@@ -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 ]
 }