Looks like you're running into the problem that requires IO#binmode.  Try 
setting that and see if you're problem goes away.


Ernie
At 14:06 1/12/2001 +0900, you wrote:
>Actually, making the change to EOL only helps when I run the script from
>the command line, the corruption still shows up when I view it with a
>browser. I don't get it. If I leave it as EOL = CR + LF and run it at
>the command line, I get the corruption too.
>
>Ok, I am completely stumped.
>
>Jon
>
>--
>_______________________________________________________________________
>   Jonathan Aseltine     aseltine / cs.umass.edu     MAS, Umass, Amherst

Never do yesterday what should be done tomorrow.
		--Robert Heinlein