diff options
author | Nick Ing-Simmons <nik@tiuk.ti.com> | 2000-11-19 17:05:36 +0000 |
---|---|---|
committer | Nick Ing-Simmons <nik@tiuk.ti.com> | 2000-11-19 17:05:36 +0000 |
commit | 95c70f2077ea14f8e2426dbcac9828b259a86bf2 (patch) | |
tree | a6c7faa82c46c13169875e9ad3fd06d67fecbb4d /perlio.c | |
parent | d6efbbad1ae8d76e90821a7418ba77645896b8bf (diff) | |
download | perl-95c70f2077ea14f8e2426dbcac9828b259a86bf2.tar.gz |
Special case :crlf and :raw in dummy PerlIO_apply_layers
p4raw-id: //depot/perlio@7751
Diffstat (limited to 'perlio.c')
-rw-r--r-- | perlio.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -32,6 +32,10 @@ int PerlIO_apply_layers(pTHX_ PerlIO *f, const char *mode, const char *names) { + if (!names || !*names || strEQ(names,":crlf") || strEQ(names,":raw")) + { + return 0; + } Perl_croak(aTHX_ "Cannot apply \"%s\" in non-PerlIO perl",names); /* NOTREACHED */ return -1; |