diff options
author | Tony Cook <tony@develop-help.com> | 2018-10-22 15:22:47 +1100 |
---|---|---|
committer | Tony Cook <tony@develop-help.com> | 2018-10-22 15:22:47 +1100 |
commit | dda4a47798d635b6b0d236c270660c8eacdda2fa (patch) | |
tree | 2210d057b0957bbbc86f9729bdb76bcd019d0ee0 /perlio.c | |
parent | 854affc4344e6f48685cc3050ef600402eb8de60 (diff) | |
download | perl-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) = { |