Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the IO-All CPAN distribution.

Report information
The Basics
Id: 81224
Status: resolved
Priority: 0/
Queue: IO-All

People
Owner: Nobody in particular
Requestors: tlinden [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.46
Fixed in: (no value)



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.
On Fri Nov 16 02:28:22 2012, TLINDEN wrote: Show quoted text
> #!/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.
Fix in git, will release shortly