[Ironruby-core] [patch] Issue in DLR.CommandLine with new lines

Jb Evain jb at nurv.fr
Tue Mar 3 07:46:49 EST 2009


I spent some time investigating why on Mono ir.exe (last git revision)
doesn't print the result of evaluations.

The issue lies in the processing of new lines in

The code is appending \n as terminating new lines, but checks for the
presence of Environment.NewLine inside the evaluated string. Obviously
it works only if Environment.NewLine is \r\n, and not \n.

Attached is a suggested patch, addressing the issue.

Jb Evain  <jb at nurv.fr>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cmd_line.patch
Type: text/x-patch
Size: 2026 bytes
Desc: not available
URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20090303/157c44dc/attachment-0001.bin>

More information about the Ironruby-core mailing list