aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/test-bot.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/test-bot.rb b/Library/Homebrew/cmd/test-bot.rb
index 93f3e0714..f18838f1a 100644
--- a/Library/Homebrew/cmd/test-bot.rb
+++ b/Library/Homebrew/cmd/test-bot.rb
@@ -149,6 +149,10 @@ module Homebrew
str.encode!(Encoding::UTF_16, :invalid => :replace)
str.encode!(Encoding::UTF_8)
end
+ elsif require "iconv"
+ def fix_encoding(str)
+ Iconv.conv("UTF-8//IGNORE", "UTF-8", str)
+ end
else
def fix_encoding(str)
str