From: gene.tani@... Date: 2004-12-23T10:36:59+09:00 Subject: Re: Inconsistency with IO.readlines Hmm, don't know OS9 file format, but couldn't you set $/ (==$INPUT_RECORD_SEPARATOR) to last character in the file, something like that?) Don't think there''s anything like Python universal newlines (open file in mode "U"). Justin Rudd wrote: > I've noticed a slight inconsistancy with IO.readlines depending on the > line ending. If the line ending is PC (\r\n) or Unix (\n) then it > works fine no matter the platform. But if the line ending is Mac > (\r), IO.readlines returns one line no matter how many lines it is > supposed to be. > > Maybe this isn't such a big deal anymore since Mac OS X uses Unix line > endings, but believe it or not I've got files coming in from Mac OS 9 > users. > > Anyone else seen this? I'm using a build built from the last stable > snapshot under Cygwin. > > -- > Justin Rudd > http://seagecko.org/thoughts/