diff options
author | Leon Timmermans <fawaka@gmail.com> | 2011-01-20 22:06:38 +0100 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2011-01-20 19:03:48 -0800 |
commit | ecfd064986aef03b9b7d8b56da83ae37ff435721 (patch) | |
tree | c00db6aa583e094d2a6f70a1faa14f119dc217a6 /perlio.c | |
parent | c0888ace5ec8d378714cd95caba0b35057e6c3f1 (diff) | |
download | perl-ecfd064986aef03b9b7d8b56da83ae37ff435721.tar.gz |
Fixes 'raw' layer for perl#80764
Made a ':raw' open do what it advertises to do (first open the file,
then binmode it), instead of leaving off the top layer.
Diffstat (limited to 'perlio.c')
-rw-r--r-- | perlio.c | 16 |
1 files changed, 1 insertions, 15 deletions
@@ -2021,20 +2021,6 @@ PERLIO_FUNCS_DECL(PerlIO_byte) = { NULL, /* set_ptrcnt */ }; -PerlIO * -PerlIORaw_open(pTHX_ PerlIO_funcs *self, PerlIO_list_t *layers, - IV n, const char *mode, int fd, int imode, int perm, - PerlIO *old, int narg, SV **args) -{ - PerlIO_funcs * const tab = PerlIO_default_btm(); - PERL_UNUSED_ARG(self); - if (tab && tab->Open) - return (*tab->Open) (aTHX_ tab, layers, n - 1, mode, fd, imode, perm, - old, narg, args); - SETERRNO(EINVAL, LIB_INVARG); - return NULL; -} - PERLIO_FUNCS_DECL(PerlIO_raw) = { sizeof(PerlIO_funcs), "raw", @@ -2042,7 +2028,7 @@ PERLIO_FUNCS_DECL(PerlIO_raw) = { PERLIO_K_DUMMY, PerlIORaw_pushed, PerlIOBase_popped, - PerlIORaw_open, + PerlIOBase_open, NULL, NULL, NULL, |