Project

General

Profile

Actions

Bug #650

closed

Marshal.load raises RegexpError

Added by shyouhei (Shyouhei Urabe) about 16 years ago. Updated over 13 years ago.

Status:
Closed
Target version:
ruby -v:
ruby 1.9.2dev
Backport:
[ruby-dev:36750]

Description

=begin
以下のように、以前のバージョンのRubyで正しくdumpしたはずの文字列をtrunkでloadできません。

% ruby1.8 -e 'Marshal.dump(/C:\Documents and Settings\urabe/, STDOUT)' | ruby1.8 -ve 'p Marshal.load(STDIN)'
ruby 1.8.7 (2008-10-11 revision 17572) [x86_64-linux]
/C:\Documents and Settings\urabe/

% ruby1.8 -e 'Marshal.dump(/C:\Documents and Settings\urabe/, STDOUT)' | ruby1.9 -ve 'p Marshal.load(STDIN)'
ruby 1.9.0 (2008-10-13 revision 17576) [x86_64-linux]
-e:1:in load': invalid Unicode escape: /C:\Documents and Settings\urabe/ (RegexpError) from -e:1:in '
=end

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0