unofficial mirror of meta@public-inbox.org
 help / color / mirror / Atom feed
* [PATCH] process_pipe: BINMODE: pass LAYER argument
@ 2023-02-27  7:18 Eric Wong
  0 siblings, 0 replies; only message in thread
From: Eric Wong @ 2023-02-27  7:18 UTC (permalink / raw)
  To: meta

We'll end up using this to handle `:utf8', probably.
---
 lib/PublicInbox/ProcessPipe.pm | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

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) }
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2023-02-27  7:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-27  7:18 [PATCH] process_pipe: BINMODE: pass LAYER argument Eric Wong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).