>works correctly in Linux version... 1.6.4 and in cgi-win version 1.6.5
	>
	>but NOT in ruby 1.6.7 (2002-03-01) [i586-mswin32]

Have you tried opening the file in binary mode:
open(name,"rb")
?

/\ndy