Re: reading binary stream?

2010-12-29 Thread Hiroki Horiuchi

Hello.


 Malformed UTF-8 string

   in 'IO::getc' at line 5457:CORE.setting


It was a bug of rakudo-star-2010.11.
recent copy of rakudo (8f10c4b94ea6) is free of this problem.

Regards,
Hiroki Horiuchi



Re: reading binary stream?

2010-12-28 Thread Andrew Whitworth
That looks like a Parrot problem, trying to force input characters to
UTF8. Can you open a ticket at trac.parrot.org for it? Thanks

--Andrew Whitworth



On Tue, Dec 28, 2010 at 5:41 AM, Hiroki Horiuchi x19...@gmail.com wrote:
 Hello.

 This program
 --
 #!/usr/bin/env perl6

 use v6;

 my $h = open '/dev/urandom', :r;
 loop (;;) {
  $h.getc;
 }
 --
 spits an error below.
 --
 Malformed UTF-8 string

  in 'IO::getc' at line 5457:CORE.setting
  in main program body at line 7:./getc.p6
 --
 How can I fix the problem?

 Thank you.
 --
 Hiroki Horiuchi