From: Akinori MUSHA Date: 2009-02-24T16:04:08+09:00 Subject: [ruby-core:22405] Re: [Bug #1195] String#% does not include prefix before zero value for # versions of numeric formats --pgp-sign-Multipart_Tue_Feb_24_16:05:23_2009-1 Content-Type: text/plain; charset=US-ASCII At Tue, 24 Feb 2009 14:16:53 +0900, Charles Oliver Nutter wrote: > Tanaka Akira wrote: > > In article <49a25ec0ce233_84c7e8c1f8909a@redmine.ruby-lang.org>, > > Charles Nutter writes: > > > >> Bug #1195: String#% does not include prefix before zero value for # versions of numeric formats > > > > It's intentional. > > So then the Ruby 1.8 behavior is a bug. Can we move the bug to Ruby > 1.8? I think the title and description don't even need to be changed. > > I have added a spec for this behavior with a 1.9 guard, but I could > remove that guard and make it a ruby_bug instead. 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? -- Akinori MUSHA / http://akinori.org/ --pgp-sign-Multipart_Tue_Feb_24_16:05:23_2009-1 Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEABECAAYFAkmjnDMACgkQkgvvx5/Z4e54MgCfQD2Dsv4YEcGURelQHhCU4phV IDwAoM+SxvUloFwpmz+ORyN53TNAECRy =673w -----END PGP SIGNATURE----- --pgp-sign-Multipart_Tue_Feb_24_16:05:23_2009-1--