From: Nobuyoshi Nakada Date: 2007-12-19T10:54:02+09:00 Subject: Re: String#% bug on Windows? Hi, At Wed, 19 Dec 2007 03:59:32 +0900, Berger, Daniel wrote in [ruby-core:14139]: > # test.rb > puts "%x" % "0_3_7_7" > > On Linux the above snippet returns 'ff'. On Windows I get test.rb:1:in > `%': invalid value for Integer: "0_3_7_7" (ArgumentError) What are the versions? Kernel#Integer works more strictly recently, underscores are no longer allowed between radix prefix and trailing digits. In this case, preceeding "0" was treated as octal radix prefix, however it seems unexpected behavior. > That a bug? I think so, and fixed it now. Thank you. -- Nobu Nakada