Fixed with https://github.com/rakudo/rakudo/commit/20fa14be7a , tests needed.

> On 4 Mar 2017, at 11:24, Zefram (via RT) <[email protected]> wrote:
> 
> # New Ticket Created by  Zefram 
> # Please include the string:  [perl #130914]
> # in the subject line of all future correspondence about this issue. 
> # <URL: https://rt.perl.org/Ticket/Display.html?id=130914 >
> 
> 
>> chr(0x100000001).ords
> (1)
>> "\x[100000001]".ords
> (1)
>> chr(-0xffffffff).ords
> (1)
> 
> chr() is reducing the supplied codepoint number mod 2**32.  The output
> produced is not what the user asked for.  chr() should instead just
> signal an error for any codepoint outside the supported [0, 2**31) range.
> 
> -zefram

Reply via email to