marshal fails in 1.9 with strings
---------------------------------
Key: JRUBY-5539
URL: http://jira.codehaus.org/browse/JRUBY-5539
Project: JRuby
Issue Type: Bug
Components: Ruby 1.9.2
Affects Versions: JRuby 1.6RC2
Environment: jruby 1.6.0.RC2 (ruby 1.9.2 patchlevel 136) (2011-02-22
698a5e3) (Java HotSpot(TM) Client VM 1.6.0_18) [Windows 7-x86-java]
Reporter: Roger Pack
Assignee: Thomas E Enebo
Just in 1.9 mode:
>> Marshal.load(Marshal.dump("abc"))
ArgumentError: marshal data too short
from org/jruby/RubyMarshal.java:148:in `load'
from (irb):1:in `evaluate'
from org/jruby/RubyKernel.java:1093:in `eval'
from org/jruby/RubyKernel.java:1418:in `loop'
from org/jruby/RubyKernel.java:1205:in `catch'
from org/jruby/RubyKernel.java:1205:in `catch'
from c:/dev/ruby/downloads/jruby/bin/jirb:13:in `(root)'
>> Marshal.load(Marshal.dump({"abc" => "def"}))
ArgumentError: invalid encoding in marshaling stream:
◄Windows-1252Idef♠; "◄Windo
from org/jruby/RubyMarshal.java:148:in `load'
from (irb):2:in `evaluate'
from org/jruby/RubyKernel.java:1093:in `eval'
from org/jruby/RubyKernel.java:1418:in `loop'
from org/jruby/RubyKernel.java:1205:in `catch'
from org/jruby/RubyKernel.java:1205:in `catch'
from c:/dev/ruby/downloads/jruby/bin/jirb:13:in `(root)'
Cheers!
-r
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email