test-bot: try to handle bad UTF-8 output.
This commit is contained in:
parent
ba26567b03
commit
ee0a553021
@ -838,6 +838,11 @@ module Homebrew
|
|||||||
end
|
end
|
||||||
|
|
||||||
if ARGV.include? "--junit"
|
if ARGV.include? "--junit"
|
||||||
|
unless RUBY_VERSION < "1.9"
|
||||||
|
Encoding.default_external = Encoding::UTF_8
|
||||||
|
Encoding.default_internal = Encoding::UTF_8
|
||||||
|
end
|
||||||
|
|
||||||
xml_document = REXML::Document.new
|
xml_document = REXML::Document.new
|
||||||
xml_document << REXML::XMLDecl.new
|
xml_document << REXML::XMLDecl.new
|
||||||
testsuites = xml_document.add_element "testsuites"
|
testsuites = xml_document.add_element "testsuites"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user