Project

General

Profile

Actions

Bug #3671

closed

DateTime dumped by Marshal from ruby 1.8 cannot be loaded by ruby 1.9

Added by drbrain (Eric Hodel) over 14 years ago. Updated over 13 years ago.

Status:
Rejected
Target version:
ruby -v:
ruby 1.9.3dev (2010-07-07 trunk 28561) [x86_64-darwin10.4.0]
Backport:
[ruby-core:31659]

Description

=begin
$ ruby -rdate -e 'Marshal.dump DateTime.now, $stdout' | ruby19 -rdate -e 'p Marshal.load $stdin.read'
-e:1:in load': class DateTime needs to have method _load' (TypeError)
from -e:1:in `'

$ ruby -v
ruby 1.8.7 (2009-06-12 patchlevel 174) [universal-darwin10.0]
$ ruby19 -v
ruby 1.9.3dev (2010-07-07 trunk 28561) [x86_64-darwin10.4.0]

Ruby 1.9 should implement DateTime._load in order to load from older versions
=end

Actions #1

Updated by naruse (Yui NARUSE) over 14 years ago

  • Assignee set to tadf (tadayoshi funaba)
  • Target version set to 2.0.0

=begin

=end

Actions #2

Updated by tadf (tadayoshi funaba) over 14 years ago

  • Status changed from Open to Rejected

=begin
this is not a matter of date.
rational or ruby.

$ /usr/local/bin/ruby -rrational -e 'Marshal.dump Rational(1,2), $stdout' | ./ruby -rrational -e 'p Marshal.load $stdin.read'
-e:1:in load': dump format error (ArgumentError) from -e:1:in '

=end

Actions

Also available in: Atom PDF

Like0
Like0Like0