about summary refs log tree commit homepage
path: root/lib/PublicInbox/ProcessPipe.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2023-02-27 07:18:34 +0000
committerEric Wong <e@80x24.org>2023-02-27 10:10:18 +0000
commit25e4319315a8c1d04730c4479d15c45c4742aa48 (patch)
treef1e5ea33d0042df1cb2eb09c2f5fa13c247cd109 /lib/PublicInbox/ProcessPipe.pm
parentd72ad1da1947ae311f4d14c93ee1812ca576c64f (diff)
downloadpublic-inbox-25e4319315a8c1d04730c4479d15c45c4742aa48.tar.gz
We'll end up using this to handle `:utf8', probably.
Diffstat (limited to 'lib/PublicInbox/ProcessPipe.pm')
-rw-r--r--lib/PublicInbox/ProcessPipe.pm6
1 files changed, 5 insertions, 1 deletions
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) }