Mauricio FernáÏdez <batsman.geo / yahoo.com> writes: > On Sun, May 16, 2004 at 05:00:33PM +0900, Mauricio FernáÏdez wrote: >> I'm told that this doesn't download the file correctly under windows >> (only a few KB are dled). On visual inspection, the associated Tempfile >> is not complete either, so the same behavior is observed when using >> is.gets(nil) or a loop with eof?. > > The bug has been traced back to Tempfile, which doesn't use the binary > mode for the underlying file. IMHO it should since the tempfile isn't > meant to be seen by other processes, so CRLF translation (and other > oddities such as ETB) makes no sense. P.S. I frequently use Tempfile as a way to place stuff in a file that is read by an external command. In those cases, end of line translation does make sense. -- matt