From: Charles Oliver Nutter Date: 2009-02-24T16:09:03+09:00 Subject: [ruby-core:22406] Re: [Bug #1195] String#% does not include prefix before zero value for # versions of numeric formats Akinori MUSHA wrote: > When 0b0, 0B0, 00, 0x0, and 0X0 are all perfectly human readable and > machine parsable, I'm not sure if we should tag it a bug and get it > fixed in any of those 1.8 branches at the cost of breaking > compatibilities. > > How does it work in JRuby 1.8? We implemented our own sprintf that matches Ruby (and in places, C) behavior. We can make it work either way. Currently there's logic that chooses the 1.8 behavior in 1.8 mode and the 1.9 behavior in 1.9 mode. I primarily ask because either there's a reason it changed (in which case 1.8 should eventually change too) or there's no reason it changed (in which case...why did it change?). It would be easier to maintain one behavior and not have the move from 1.8 to 1.9 behave differently.