Project

General

Profile

ActionsLike0

Bug #6625

closed

broken Marshal compatibilities on Complex and Rational

Added by nobu (Nobuyoshi Nakada) almost 13 years ago. Updated over 12 years ago.

Status:
Closed
Target version:
ruby -v:
2.0.0
Backport:
[ruby-core:45775]

Description

=begin
(({Complex})) and (({Rational})) dumped by 1.8 or earlier cannot be loaded by trunk.

$ /usr/bin/ruby -v
ruby 1.8.7 (2011-12-28 patchlevel 357) [universal-darwin11.0]

$ ruby -v
ruby 2.0.0dev (2012-06-22 trunk 36175) [universal.x86_64-darwin11]

$ /usr/bin/ruby -rcomplex -e 'Marshal.dump(Complex(0, 0), STDOUT)' | ruby -e 'p Marshal.load(STDIN)'
-e:1:in load': dump format error (ArgumentError) from -e:1:in '
bash: exit 1

$ /usr/bin/ruby -rrational -e 'Marshal.dump(Rational(0), STDOUT)' | ruby -e 'p Marshal.load(STDIN)'
-e:1:in load': dump format error (ArgumentError) from -e:1:in '
bash: exit 1

Patch attached.
=end


Files

0001-compatible-marshal-loader.patch (5.6 KB) 0001-compatible-marshal-loader.patch nobu (Nobuyoshi Nakada), 06/22/2012 02:08 PM

Updated by tadf (tadayoshi funaba) almost 13 years ago

  • Priority changed from Normal to 3
#4

Updated by nobu (Nobuyoshi Nakada) over 12 years ago

  • Status changed from Assigned to Closed
  • % Done changed from 0 to 100
ActionsLike0

Also available in: Atom PDF