From d29d5d7e92d842febe1a4407b44778ae42b5bb4d Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Wed, 4 Jun 2014 01:35:12 -0500 Subject: Fix some places where encoding issues manifest on ruby 2.0 --- Library/Homebrew/cmd/bottle.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Library/Homebrew/cmd') diff --git a/Library/Homebrew/cmd/bottle.rb b/Library/Homebrew/cmd/bottle.rb index 6d3f9ba92..8c07a6f8d 100644 --- a/Library/Homebrew/cmd/bottle.rb +++ b/Library/Homebrew/cmd/bottle.rb @@ -67,7 +67,7 @@ module Homebrew extend self end # Use strings to search through the file for each string - IO.popen("strings -t x - '#{file}'") do |io| + IO.popen("strings -t x - '#{file}'", "rb") do |io| until io.eof? str = io.readline.chomp -- cgit v1.2.3