[Ironruby-core] Code Review: Fix for File.print misbehavior
lists at ruby-forum.com
Fri May 15 11:20:22 EDT 2009
Using the File.print method after the global input record separator had
been changed generated a different output than the MRI.
For example, consider the next code block:
$\ = ">>"
file = File.open("a.txt","w")
file.print "One ", 1, ", Two ", 2
Output file on MRI: One 1, Two 2>>
Output file on IronRuby: One >>1>>, Two >>2>>
This commit fixes this behavior.
Posted via http://www.ruby-forum.com/.
More information about the Ironruby-core