diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2017-04-17 10:53:09 +0300 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2017-04-17 10:53:09 +0300 |
commit | c26b126502d4025230aa80e7d26736e1398c5022 (patch) | |
tree | 4eed6390ef5d2671792fc03a64d164a19061acf0 /lib | |
parent | ee3b0c3a9ad0823f86b5c798c47c343a812228d0 (diff) |
Make sure @stream.each_line would tag Encoding.default_external
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/ci/trace/stream.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/gitlab/ci/trace/stream.rb b/lib/gitlab/ci/trace/stream.rb index 33141d0d88d..8d9fb6ff0f1 100644 --- a/lib/gitlab/ci/trace/stream.rb +++ b/lib/gitlab/ci/trace/stream.rb @@ -15,6 +15,8 @@ module Gitlab def initialize @stream = yield @stream.binmode + # Ci::Ansi2html::Converter would read from @stream directly + @stream.set_encoding(Encoding.default_external) end def valid? |