Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Ruby
Marshal format filter? 1.6.8 to 1.8.1
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
Reply to thread
Message
[QUOTE="Yukihiro Matsumoto, post: 4424134"] Hi, In message "Marshal format filter? 1.6.8 to 1.8.1" |I'm in a situation where I may want to have a 1.8.1 client communicate |with a 1.6.8 server, where the server is sending back marshal'd data. |Is there a way to "filter" a 1.6.8 format into a 1.8.1 format, and |vice-versa? Simplest filter (should run on 1.8.1): Marshal.dump(Marshal.load(STDIN), STDOUT) Binary hack: open(file, "r+"){|f| f.rewind f.putc Marshal::MAJOR_VERSION f.putc Marshal::MINOR_VERSION } I recommend you not to convert downward. matz. [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Ruby
Marshal format filter? 1.6.8 to 1.8.1
Top