user/dev discussion of public-inbox itself
 help / color / mirror / code / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download mbox.gz: |
* [PATCH] process_pipe: BINMODE: pass LAYER argument
@ 2023-02-27  7:18  7% Eric Wong
  0 siblings, 0 replies; 1+ results
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	[relevance 7%]

Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2023-02-27  7:18  7% [PATCH] process_pipe: BINMODE: pass LAYER argument Eric Wong

Code repositories for project(s) associated with this public inbox

	https://80x24.org/public-inbox.git

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