ruby-changes:34168
From: naruse <ko1@a...>
Date: Fri, 30 May 2014 17:53:07 +0900 (JST)
Subject: [ruby-changes:34168] naruse:r46249 (trunk): force_encoding to get the log of failure by Encoding::CompatibilityError
naruse 2014-05-30 17:52:58 +0900 (Fri, 30 May 2014) New Revision: 46249 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?revision=46249&view=revision Log: force_encoding to get the log of failure by Encoding::CompatibilityError https://travis-ci.org/ruby/ruby/jobs/26361118 Modified files: trunk/test/lib/test/unit/parallel.rb Index: test/lib/test/unit/parallel.rb =================================================================== --- test/lib/test/unit/parallel.rb (revision 46248) +++ test/lib/test/unit/parallel.rb (revision 46249) @@ -36,6 +36,7 @@ module Test https://github.com/ruby/ruby/blob/trunk/test/lib/test/unit/parallel.rb#L36 th = Thread.new do begin while buf = (self.verbose ? i.gets : (i.readpartial(1024) || i.read(5))) + buf.force_encoding(Encoding::ASCII_8BIT) buf.sub!(/\A\n?\.+(?!\z)/, '') _report "p", buf end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/