Issue #2109 has been updated by Naohisa Goto.


Resemble bug happened on trunk r25000, running on Debian GNU/Linux lenny i386.

  a = "\x82\xa0".force_encoding("Windows-31J")
  b = "\x82\xa2".force_encoding("Windows-31J")
  str = Marshal.dump [ /#{a}/, /#{b}/ ]
  puts str.dump
  Marshal.load(str)

"\x04\b[\aI/\a\x82\xA0\x10\x06:\rencoding\"\x10Windows-31JI/\a\x82\xA2\x10\x06;\x00@\a"
-:5:in `load': can't convert Regexp into String (TypeError)
	from -:5:in `<main>'

% ruby-trunk -v
ruby 1.9.2dev (2009-09-18 trunk 25000) [i686-linux]

----------------------------------------
http://redmine.ruby-lang.org/issues/show/2109

----------------------------------------
http://redmine.ruby-lang.org