aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-11-18 01:21:50 -0600
committerJack Nagel2014-11-18 01:22:25 -0600
commita9e34b0ee2288c66d787f39d4c1b9c0885bf44ab (patch)
treefa8489574375914d75e51a3084b723b5ba7bfdcc /Library
parent7f230dfaf871cb3bf6cd7b3937d2cffe48ee7ae4 (diff)
downloadbrew-a9e34b0ee2288c66d787f39d4c1b9c0885bf44ab.tar.bz2
UTF-8 to UTF-16 should never raise UndefinedConversionError
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/test-bot.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/test-bot.rb b/Library/Homebrew/cmd/test-bot.rb
index 9c09b66e8..93f3e0714 100644
--- a/Library/Homebrew/cmd/test-bot.rb
+++ b/Library/Homebrew/cmd/test-bot.rb
@@ -146,7 +146,7 @@ module Homebrew
return str if str.valid_encoding?
# Assume we are starting from a "mostly" UTF-8 string
str.force_encoding(Encoding::UTF_8)
- str.encode!(Encoding::UTF_16, :invalid => :replace, :undef => :replace)
+ str.encode!(Encoding::UTF_16, :invalid => :replace)
str.encode!(Encoding::UTF_8)
end
else