Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: PerlIO: crlf layer on Windows interfering with UCS-2 unicode

by ikegami (Pope)
on Feb 15, 2010 at 06:43 UTC ( #823228=note: print w/ replies, xml ) Need Help??


in reply to PerlIO: crlf layer on Windows interfering with UCS-2 unicode

Note that your proposed solution disables buffering. Replace

open my $fh, ">:raw:encoding(ucs-2le):crlf:utf8", $qfn

with

open my $fh, ">:raw:perlio:encoding(ucs-2le):crlf:utf8", $qfn

to support buffering.

Also, there doesn't appear to be a need to specify :utf8, so all you need is

open my $fh, ">:raw:perlio:encoding(ucs-2le):crlf", $qfn


Comment on Re: PerlIO: crlf layer on Windows interfering with UCS-2 unicode
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (9)
As of 2014-07-26 01:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (175 votes), past polls