]> git.ipfire.org Git - thirdparty/public-inbox.git/commitdiff
process_pipe: BINMODE: pass LAYER argument
authorEric Wong <e@80x24.org>
Mon, 27 Feb 2023 07:18:34 +0000 (07:18 +0000)
committerEric Wong <e@80x24.org>
Mon, 27 Feb 2023 10:10:18 +0000 (10:10 +0000)
We'll end up using this to handle `:utf8', probably.

lib/PublicInbox/ProcessPipe.pm

index 1bc792c4bada77676916b10f330e87d1c0d9b98f..bbba75a2255661d6ee22cf8b9f90754d7b92602d 100644 (file)
@@ -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) }