aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/extend/pathname.rb
diff options
context:
space:
mode:
authorJack Nagel2014-03-26 13:45:46 -0500
committerJack Nagel2014-03-26 13:45:46 -0500
commit5bd6f27a6ed4ffd8ede749780f2d5a4cf796d485 (patch)
tree18c577f29282c82d9b32ab0f036092e075fabf79 /Library/Homebrew/extend/pathname.rb
parentd82fe672a497603ad9e9cdeb8a6871dbd577c0cf (diff)
downloadhomebrew-5bd6f27a6ed4ffd8ede749780f2d5a4cf796d485.tar.bz2
Put tempfile into binmode before writing
Diffstat (limited to 'Library/Homebrew/extend/pathname.rb')
-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