In article <OL028.14406$467.564234 / news2.calgary.shaw.ca>, Michael Hayes wrote:
[...]
>chomp won't remove the last char from an
>unterminated line, but it only works on one
>type of record separator, so it won't handle
>\n and \r\n at the same time.
[...]

"foo\r\n".chomp("\r\n")

works for me (Ruby 1.6.4.)

-- 
Earth -- mother of the most beautiful women in the universe.
		-- Apollo, "Who Mourns for Adonais?" stardate 3468.1