Actions
Bug #2109
closedMarshal gives error when dumping and loading array with two regexps in ruby 1.9.1-p243
Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 1.9.1p243 (2009-07-16 revision 24175) [i686-linux]
Backport:
Description
=begin
In ruby 1.9.1-p243, attempting to dump and load again an array containing two or more Regexps gives an error. For example, the following code:
str = Marshal.dump [/a/, /b/]
Marshal.load str
gives this error:
prova.rb:2:in `load': can't convert Regexp into String (TypeError)
The above code worked perfectly with ruby 1.9.1-p129. This is happening in Gentoo Linux.
=end
Actions
Like0
Like0Like0Like0