Message-ID: <
20010926060233.7554.qmail@onion.perl.org>
p4raw-id: //depot/perl@12236
PerlIO_debug("PerlIO_binmode f=%p %s %c %x %s\n",
f, PerlIOBase(f)->tab->name, iotype, mode,
(names) ? names : "(Null)");
+ PerlIO_flush(f);
if (!names && (O_TEXT != O_BINARY && (mode & O_BINARY))) {
PerlIO *top = f;
while (*top) {
if (PerlIOBase(top)->tab == &PerlIO_crlf) {
- PerlIO_flush(top);
PerlIOBase(top)->flags &= ~PERLIO_F_CRLF;
break;
}
top = PerlIONext(top);
+ PerlIO_flush(top);
}
}
return PerlIO_apply_layers(aTHX_ f, NULL, names) == 0 ? TRUE : FALSE;