|
|
| Think about Loose Coupling | |
| PerlMonks |
Re: PerlIO: crlf layer on Windows interfering with UCS-2 unicodeby ikegami (Pope) |
| on Jun 03, 2008 at 10:53 UTC ( #689841=note: print w/ replies, xml ) | Need Help?? |
|
Surprisingly, the trick only works for open, not binmode.
The only solution I've found follows, but I don't like it.
The issue is that :raw disables the existing :crlf layer (but doesn't remove it) when using binmode. Then, the later :crlf reactivates the earlier :crlf layer instead of adding a new layer, messing everything up.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||