From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id CDD0F21422 for ; Wed, 30 Jan 2019 04:44:32 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 09/11] solvergit: avoid "Wide character" warnings Date: Wed, 30 Jan 2019 04:44:28 +0000 Message-Id: <20190130044430.28189-10-e@80x24.org> In-Reply-To: <20190130044430.28189-1-e@80x24.org> References: <20190130044430.28189-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: Just quiet Perl down, since we don't know or care about the encoding of the patch we hand off to git-apply. --- lib/PublicInbox/SolverGit.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/PublicInbox/SolverGit.pm b/lib/PublicInbox/SolverGit.pm index 891cde2..1b1951b 100644 --- a/lib/PublicInbox/SolverGit.pm +++ b/lib/PublicInbox/SolverGit.pm @@ -125,6 +125,7 @@ sub extract_diff ($$$$$) { push @$hdr_lines, $l; $di->{hdr_lines} = $hdr_lines; + utf8::encode($_) for @$hdr_lines; print $tmp @$hdr_lines or die "print(tmp): $!"; # for debugging/diagnostics: @@ -153,6 +154,7 @@ sub extract_diff ($$$$$) { $di->{path_b} = join('/', @b); $hdr_lines = [ $l ]; } elsif ($tmp) { + utf8::encode($l); print $tmp $l or die "print(tmp): $!"; } elsif ($hdr_lines) { push @$hdr_lines, $l; -- EW