I'm not sure if this is related but File::Slurp uses sysread, which
ignores perlio layers like 'encoding'.  (Except possibly lax :utf8 is
still turned on because it's not a real layer.)

David

On Sun, Sep 15, 2013 at 10:33 PM, Ron Savage <r...@savage.net.au> wrote:
> Hi
>
> I'm getting a few reports like:
>
> http://www.cpantesters.org/cpan/report/eb649035-6c13-1014-9608-8f71db05e747
>
> If I copy-and-paste the first 'got' and 'expected' strings, they are the
> same.
>
> I'm using File::Slurp's read_file() with
>
> {binmode => ':encoding(utf8)'}
>
> but without the chomp option, and calling is(read_file....).
>
> Would it be likely that the problem is due to the got being a Windows file
> and the expected (shipped) output file is from my Debian box?
>
> --
> Ron Savage
> http://savage.net.au/
> Ph: 0421 920 622



-- 
David Golden <x...@xdg.me>
Take back your inbox! → http://www.bunchmail.com/
Twitter/IRC: @xdg

Reply via email to