develooper Front page | perl.perl6.compiler | Postings from September 2010

[perl #77888] [BUG] chr() returns something that is not a string of characters, and say/print outputs it as bytes in Rakudo

Thread Next
From:
Patrick R. Michaud via RT
Date:
September 16, 2010 12:57
Subject:
[perl #77888] [BUG] chr() returns something that is not a string of characters, and say/print outputs it as bytes in Rakudo
Message ID:
rt-3.6.HEAD-5116-1284667032-1107.77888-14-0@perl.org
Now fixed in 760c734:

  pmichaud@plum:~/rakudo$ ./perl6
  > print .chr for <233 186 166 233 171 152>;
  麦é«> 

The TT #1793 ticket turned out to be a non-bug; the problem was in
Rakudo's setup of $*IN, $*OUT, and $*ERR.

I'm not sure how the current test suite would be able to test this
particular bug (since it's in the standard output filehandle), so I'm
going to go ahead and mark the ticket as resolved.  (If someone has a
good way of testing this, it would be welcome.)

Thanks!

Pm

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About