Hi,
In message "[BUG?] Tempfile"
on 03/01/03, Pierre Baillet <oct / zoy.org> writes:
|it seems that using tempfile.rb (ruby 1.7.3 from PragProg installer)
|with binary files does fail on Windows (because of the missing "b" flag
|when the file is opened for writing).
How about calling "binmode" to the tempfile object?
t = Tempfile.new("foo")
t.binmode
...
matz.