From 25e4319315a8c1d04730c4479d15c45c4742aa48 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 27 Feb 2023 07:18:34 +0000 Subject: process_pipe: BINMODE: pass LAYER argument We'll end up using this to handle `:utf8', probably. --- lib/PublicInbox/ProcessPipe.pm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib/PublicInbox/ProcessPipe.pm') diff --git a/lib/PublicInbox/ProcessPipe.pm b/lib/PublicInbox/ProcessPipe.pm index 1bc792c4..bbba75a2 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) } -- cgit v1.2.3-24-ge0c7