aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-11-18 01:14:52 -0600
committerJack Nagel2014-11-18 01:22:42 -0600
commit24f1a6e9fc0bbe42a29a7880f57732bc5ad4ae34 (patch)
tree567a4826ab2d6b5ea6e6b82b4bd2e28b9535524c /Library
parenta9e34b0ee2288c66d787f39d4c1b9c0885bf44ab (diff)
downloadbrew-24f1a6e9fc0bbe42a29a7880f57732bc5ad4ae34.tar.bz2
Run test-bot logs through iconv on Ruby 1.8
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