Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2017-04-17 10:53:09 +0300
committerLin Jen-Shin <godfat@godfat.org>2017-04-17 10:53:09 +0300
commitc26b126502d4025230aa80e7d26736e1398c5022 (patch)
tree4eed6390ef5d2671792fc03a64d164a19061acf0 /lib
parentee3b0c3a9ad0823f86b5c798c47c343a812228d0 (diff)
Make sure @stream.each_line would tag Encoding.default_external
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/ci/trace/stream.rb2
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?