aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-03-26 13:45:46 -0500
committerJack Nagel2014-03-26 13:45:46 -0500
commit03fca453c444cc8c37caf50f9ae380b7f85509c8 (patch)
treeed4d379d7c340ce06529cd8e621d8bed3b40afbb /Library
parent3943a778329f8ad724d743fa8bf3e592373086f8 (diff)
downloadbrew-03fca453c444cc8c37caf50f9ae380b7f85509c8.tar.bz2
Put tempfile into binmode before writing
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/extend/pathname.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/Library/Homebrew/extend/pathname.rb b/Library/Homebrew/extend/pathname.rb
index d37122951..cb76c8910 100644
--- a/Library/Homebrew/extend/pathname.rb
+++ b/Library/Homebrew/extend/pathname.rb
@@ -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