Skip Menu |
Report information
Id: 127017
Status: new
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: zefram [at] fysh.org
Cc:
AdminCc:

Severity: (no value)
Tag: Bug
Platform: (no value)
Patch Status: (no value)
VM: (no value)



From: Zefram <zefram [...] fysh.org>
Date: Thu, 24 Dec 2015 04:04:29 +0000
To: rakudobug [...] perl.org
Subject: [BUG] Int.fmt fails for some non-standard Int values
Download (untitled) / with headers
text/plain 251b
Show quoted text
> (1 but 7).fmt("%02d")
P6opaque: get_boxed_ref could not unbox for the representation '20' Presumably the above should have returned "01", as do other uses of .fmt on non-standard Ints: Show quoted text
> True.fmt("%02d")
01 Show quoted text
> (1 but "aaa").fmt("%02d")
01 -zefram


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at perl.org