There is an unsaved comment in progress. You will lose your changes if you continue. Are you sure you want to reopen the work item?
IO.readline does not take account of the optional separator
In IR 1.0, IO.readline does not take account of the optional parameter that is supposed to be the line separator.
IO.gets on the other hand does.
My copy of Programming Ruby says:
readline io.readline( separator=$/ )→ string
Reads a line as with IO#gets, but raises an EOFError on end of file.
I've checked all other Ruby flavours, and they all act as expected.
Interestingly, RubySpec tests the separator on gets, but not readline.