Shouldn't tempfile open it's file in binary mode by default?
One can of course call .binmode immediately after creating the tempfile,
but doesn't binary by default make more sense in the case of a temporary
If it's too late to change the default behaviour, then perhaps
tempfile.new should accept a flag parameter?
Posted via http://www.ruby-forum.com/.