From: Eric Wong Date: Mon, 27 Feb 2023 07:18:34 +0000 (+0000) Subject: process_pipe: BINMODE: pass LAYER argument X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=25e4319315a8c1d04730c4479d15c45c4742aa48;p=thirdparty%2Fpublic-inbox.git process_pipe: BINMODE: pass LAYER argument We'll end up using this to handle `:utf8', probably. --- diff --git a/lib/PublicInbox/ProcessPipe.pm b/lib/PublicInbox/ProcessPipe.pm index 1bc792c4b..bbba75a22 100644 --- a/lib/PublicInbox/ProcessPipe.pm +++ b/lib/PublicInbox/ProcessPipe.pm @@ -24,7 +24,11 @@ sub TIEHANDLE { $self; } -sub BINMODE { binmode(shift->{fh}) } # for IO::Uncompress::Gunzip +# for IO::Uncompress::Gunzip +sub BINMODE { + my $self = shift; + binmode($self->{fh}, @_); +} sub READ { read($_[0]->{fh}, $_[1], $_[2], $_[3] || 0) }