Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^4: Perl Windows vs Cygwin installs

by Anonymous Monk
on Mar 24, 2012 at 00:09 UTC ( #961336=note: print w/ replies, xml ) Need Help??


in reply to Re^3: Perl Windows vs Cygwin installs
in thread Perl Windows vs Cygwin installs

I don't feel like scrutinizing your post, but the wisdom from my link regarding 16le was to add :crlf last as in :raw:perlio:encoding(UTF-16le):crlf


Comment on Re^4: Perl Windows vs Cygwin installs
Re^5: Perl Windows vs Cygwin installs
by Eliya (Vicar) on Mar 24, 2012 at 00:30 UTC

    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...

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://961336]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (11)
As of 2014-11-24 14:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (141 votes), past polls