in reply to
Re^4: Perl Windows vs Cygwin installs
in thread Perl Windows vs Cygwin installs
Yes, that's fine as a take home message. Though it should be pointed out that the sequence of layers does work only in that exact order. I.e. simply adding the :crlf layer last is not sufficient, you also have to remove it left of the UTF-16 layer, which is what the :raw does. In other words, saying ">:encoding(UTF-16LE):crlf" is not enough — not even with the new patch! What adds to the unexpectedness is that some people might not even be aware that (on Windows, by default) there is another :crlf layer left of the UTF-16 layer when saying ">:encoding(UTF-16LE):crlf".
Anyhow, I was mostly commenting on p5140-Selected Bug Fixes — in particular on this statement
When binmode FH, ":crlf" pushes the :crlf layer on top of the stack, it no longer enables crlf layers lower in the stack, to avoid unexpected results [perl #38456].
which sounds as if it was meant to fix the issue...