aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/pull.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/pull.rb b/Library/Homebrew/cmd/pull.rb
index eef2d41ee..26c8cf522 100644
--- a/Library/Homebrew/cmd/pull.rb
+++ b/Library/Homebrew/cmd/pull.rb
@@ -321,6 +321,7 @@ module Homebrew
def current_versions_from_info_external(formula_name)
versions = {}
json = Utils.popen_read(HOMEBREW_BREW_FILE, "info", "--json=v1", formula_name)
+ json.force_encoding("UTF-8") if json.respond_to?(:force_encoding)
if $?.success?
info = Utils::JSON.load(json)
[:stable, :devel, :head].each do |vertype|