rakudo/rakudo — pull request #340 by peschwa (2014-12-25 21:45:25+00:00)
Title: Fix RT #77114.

Straight up stolen from STD.pm6, these modifications pass the tests pushed in [this roast commit](https://github.com/perl6/roast/commit/3f00b5b12c6526ca2af4da2140896373408ea099).