On Fri, 18 Jan 2002 21:49:34 GMT, "Michael Hayes" <mike / aiinc.ca> wrote in
comp.lang.ruby:

>I can say:
>
>    str.chomp.chomp("\r")
>
>or make up some regexp horror, but I'd really
>like to know if there is some method that I've
>overlooked that can flexibly, reliably and
>safely remove a line terminator from any string.

You could use
	str = (str + "\n").chomp
to work-around the apparent bugs until you upgrade to 1.7.