[Ironruby-core] Code Review: Fix for File.print misbehavior
Shay Friedman
lists at ruby-forum.com
Fri May 15 11:20:22 EDT 2009
Commit Description:
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
file.close
Output file on MRI: One 1, Two 2>>
Output file on IronRuby: One >>1>>, Two >>2>>
This commit fixes this behavior.
Commit site:
http://github.com/shayfriedman/ironruby/commit/0ccacf09b53c231f21851391d616b0fa53026197
Files changed:
Merlin/Main/Languages/Ruby/Libraries.LCA_RESTRICTED/Builtins/IoOps.cs
Thanks,
Shay.
--
Posted via http://www.ruby-forum.com/.
More information about the Ironruby-core
mailing list