From: Christian Neukirchen Date: 2009-01-05T22:21:35+09:00 Subject: [ruby-core:21137] String marshalling and Marshal version numbers I just found this "bug"/inconsistency with help of the rack test suite: >> RUBY_VERSION => "1.8.6" >> Marshal::MAJOR_VERSION => 4 >> Marshal::MINOR_VERSION => 8 >> Marshal.dump("foo") => "\004\b\"\bfoo" >> RUBY_VERSION => "1.9.1" >> Marshal::MAJOR_VERSION => 4 >> Marshal::MINOR_VERSION => 8 >> Marshal.dump("foo") => "\x04\bI\"\bfoo\x06:\rencoding\"\nUTF-8" Even if the marshal format itself did not change, the invariant that same Marshal versions result in the same string does not hold. Should MINOR_VERSION be bumped to 5? (Although I can load the string in 1.8, but not access the encoding in any way.) -- Christian Neukirchen http://chneukirchen.org