Put tempfile into binmode before writing

This commit is contained in:
Jack Nagel 2014-03-26 13:45:46 -05:00
parent 3943a77832
commit 03fca453c4

View File

@ -98,6 +98,7 @@ class Pathname
def atomic_write content
require "tempfile"
tf = Tempfile.new(basename.to_s)
tf.binmode
tf.write(content)
tf.close