On Mon, Oct 3, 2011 at 1:04 AM, Craig A. Berry <craig.a.berry@gmail.com> wrote: > Yes, that looks like exactly what it's doing: > > 1191 if (s) { > 1192 PerlIO_parse_layers(aTHX_ PL_def_layerlist, s); > 1193 } > 1194 else { > 1195 PerlIO_default_buffer(aTHX_ PL_def_layerlist); > 1196 } > > from > > http://perl5.git.perl.org/perl.git/blob/HEAD:/perlio.c#l1191 > > where s is the string containing what PERLIO translated to. When PerlIO is initialized, the standard in/out/err are all explicitly opened as textstreams. It seems that, lacking the crlf layer because of :raw the newline translation is actually done natively; this is rather surprising because it's kind of hard to trigger this edge case, I'm not even sure why we'd want this to be possible in the first place. LeonThread Previous