From 10ab20f85556b7ddac81d2d7f2fc17254940a3b3 Mon Sep 17 00:00:00 2001 From: Alexei Barantsev Date: Thu, 19 Mar 2020 15:56:10 +0300 Subject: [PATCH] [build] Fixing bazel launcher to enforce UTF-8 output encoding to prevent issues in non-English editions of operating systems --- rake_tasks/bazel.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rake_tasks/bazel.rb b/rake_tasks/bazel.rb index 781c506337062..d3c0b10a8511a 100644 --- a/rake_tasks/bazel.rb +++ b/rake_tasks/bazel.rb @@ -15,7 +15,7 @@ def self.execute(kind, args, target, &block) if SeleniumRake::Checks.windows? cmd = cmd + ["2>&1"] cmd_line = cmd.join(' ') - cmd_out = `#{cmd_line}` + cmd_out = `#{cmd_line}`.force_encoding("UTF-8") cmd_exit_code = $?.success? else Open3.popen2e(*cmd) do |stdin, stdouts, wait|