Project

General

Profile

Actions

Bug #2109

closed

Marshal gives error when dumping and loading array with two regexps in ruby 1.9.1-p243

Added by stefanocr (Stefano Crocco) over 14 years ago. Updated about 13 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 1.9.1p243 (2009-07-16 revision 24175) [i686-linux]
Backport:
[ruby-core:25625]

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

Also available in: Atom PDF

Like0
Like0Like0Like0