summaryrefslogtreecommitdiff
path: root/perlio.c
diff options
context:
space:
mode:
authorTony Cook <tony@develop-help.com>2018-10-22 15:22:47 +1100
committerTony Cook <tony@develop-help.com>2018-10-22 15:22:47 +1100
commitdda4a47798d635b6b0d236c270660c8eacdda2fa (patch)
tree2210d057b0957bbbc86f9729bdb76bcd019d0ee0 /perlio.c
parent854affc4344e6f48685cc3050ef600402eb8de60 (diff)
downloadperl-dda4a47798d635b6b0d236c270660c8eacdda2fa.tar.gz
(perl #133604) fix binmode on Win32 :crlf layers
On Win32 the :crlf layer is special - it replaces the use of the normal :perlio buffering layer. So while binmode :raw with :crlf present on non-Win32 removes the CRLF layer, on Win32 it simply switches the :crlf layer's CRLF flag off to prevent translation. Unfortunately the :crlf skipped doing something else expected by :raw - it didn't turn off the layer UTF8 flag. This broke the tests I added in 9704d779004.
Diffstat (limited to 'perlio.c')
-rw-r--r--perlio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/perlio.c b/perlio.c
index ba934ff259..904d47a57e 100644
--- a/perlio.c
+++ b/perlio.c
@@ -4825,7 +4825,7 @@ PerlIOCrlf_binmode(pTHX_ PerlIO *f)
PerlIO_pop(aTHX_ f);
#endif
}
- return 0;
+ return PerlIOBase_binmode(aTHX_ f);
}
PERLIO_FUNCS_DECL(PerlIO_crlf) = {