From: "octplane (Pierre B)" Date: 2012-03-28T01:04:28+09:00 Subject: [ruby-core:43762] [ruby-trunk - Bug #6209][Open] Marshal.load unable to load previously marshaled data: invalid encoding symbol (EncodingError) Issue #6209 has been reported by octplane (Pierre B). ---------------------------------------- Bug #6209: Marshal.load unable to load previously marshaled data: invalid encoding symbol (EncodingError) https://bugs.ruby-lang.org/issues/6209 Author: octplane (Pierre B) Status: Open Priority: Normal Assignee: Category: core Target version: ruby -v: ruby 1.9.3p125 (2012-02-16 revision 34643) [x86_64-darwin11.3.0] =begin = Description A ruby object (generated with the Classifier gem) is Marshalled on the disk. When reloaded, the ruby interpreter crashes with the following error: test-case.rb:8:in `load': invalid encoding symbol (EncodingError) from test-case.rb:8:in `block in
' from test-case.rb:7:in `open' from test-case.rb:7:in `
' The marshalled data has been generated using the classifier gem and the provided test-case and test-file = Expected Behaviour Ruby reloads the Marshalled data without error = Step to reproduce * Install the classifier gem. * Ensure . does not contain classifier.data * run (({ruby test-case.rb})) * Check classifier.data exists * run (({ruby test-case.rb})) * the runtime crashed =end -- http://bugs.ruby-lang.org/