rubinius/rubinius — pull request #1217 by xaviershay (2011-10-10 02:53:34+00:00)
Title: Fix sprintf to match rubyspec

Includes all relevant specs passing in 18 and 19 mode.
I expect this patch will need some changes before it is merged.

Specifically:

* It changes `spec`. I would like some feedback on this before submitting to `rubyspec`, since I don't know if it is actually a problem with how Rubinius runs its specs - the version is not checked on `ruby_bug` when run under Rubinius.
* The atom that is used to process %u needs to be toggled depending on whether we are in 1.8 or 1.9 mode. I couldn't find which constant/config was correct to check.
* The unsigned int code fix is kludgy, but correct is better than broken IMO.
* This is my first foray into this codebase, so other things may be weird also.