Subject: | When utf8 is enabled globally, ->binary->all doesn't work |
#!/usr/bin/perl
use IO::All -utf8;
my $img = io('img.jpg')->binary->all;
Output:
utf8 "\xFA" does not map to Unicode at
/usr/local/lib/perl5/5.10.1/mach/IO/Handle.pm line 425.
[..]
This happens, because IO::All is using IO::Handle::getline() to read
file contents. This doesn't happen, when the -utf8 flag is left.