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 Previous
From:
Carl Mäsak
Date:
September 15, 2010 23:15
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-1284617748-1406.77888-82-0@perl.org
# New Ticket Created by  "Carl Mäsak" 
# Please include the string:  [perl #77888]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=77888 >


<masak> perl6: say chr(194), chr(177)
<p6eval> rakudo 358d72: OUTPUT«±␤»
<p6eval> ..pugs: OUTPUT«Â±␤»
<masak> I'm with pugs on this one.
<TimToady> I'm with masak on this one.
* masak submits rakudobug on this one
<masak> perl6: print .chr for <233 186 166 233 171 152>
<p6eval> rakudo 358d72: OUTPUT«麦高»
<p6eval> ..pugs: OUTPUT«éº¦é«˜»
<masak> clearly rakudo is thinking in bytes, not characters.
<TimToady> indeed

Thread Previous


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