brew pull: fix encoding of brew info --json output
Fixes Homebrew/homebrew#49757 Closes Homebrew/homebrew#49775 Closes Homebrew/homebrew#49947. Signed-off-by: Andrew Janke <andrew@apjanke.net>
This commit is contained in:
parent
ad5ee6a3f1
commit
23ee1ee499
@ -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|
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user