Tempfile should be binary by default, or at least a flag

(Ben Harper) #1

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
file?

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/.