unofficial mirror of meta@public-inbox.org
 help / color / mirror / Atom feed
* [PATCH] lei_mirror: show non-ASCII owner properly w/ --verbose
@ 2023-02-09 12:30 Eric Wong
  0 siblings, 0 replies; only message in thread
From: Eric Wong @ 2023-02-09 12:30 UTC (permalink / raw)
  To: meta

This makes the verbose progress output look nicer, but doesn't
affect the actual config file generation.
---
 lib/PublicInbox/LeiMirror.pm | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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 ]
 }

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2023-02-09 12:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-09 12:30 [PATCH] lei_mirror: show non-ASCII owner properly w/ --verbose Eric Wong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).