Created
March 11, 2010 10:07
-
-
Save til/329015 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/lib/integrity/builder.rb b/lib/integrity/builder.rb | |
index 4b6ffa3..af90c8a 100644 | |
--- a/lib/integrity/builder.rb | |
+++ b/lib/integrity/builder.rb | |
@@ -37,6 +37,9 @@ module Integrity | |
def complete | |
Integrity.log "Build #{commit} exited with #{@status} got:\n #{@output}" | |
+ # Remove invalid UTF8, see http://po-ru.com/diary/fixing-invalid-utf-8-in-ruby-revisited/ | |
+ @output = (Iconv.iconv('UTF-8//IGNORE', 'UTF-8', @output).first + ' ')[0..-2] | |
+ | |
@build.update!( | |
:completed_at => Time.now, | |
:successful => @status, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment