ruby-changes:40306
From: naruse <ko1@a...>
Date: Fri, 30 Oct 2015 16:01:58 +0900 (JST)
Subject: [ruby-changes:40306] naruse:r52387 (trunk): set as binary before gsub
naruse 2015-10-30 16:01:36 +0900 (Fri, 30 Oct 2015) New Revision: 52387 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=52387 Log: set as binary before gsub Modified files: trunk/test/lib/envutil.rb Index: test/lib/envutil.rb =================================================================== --- test/lib/envutil.rb (revision 52386) +++ test/lib/envutil.rb (revision 52387) @@ -330,11 +330,11 @@ module Test https://github.com/ruby/ruby/blob/trunk/test/lib/envutil.rb#L330 full_message << "pid #{pid}" full_message << " killed by #{sigdesc}" if sigdesc if out and !out.empty? - full_message << "\n#{out.gsub(/^/, '| ')}" + full_message << "\n#{out.b.gsub(/^/, '| ')}" full_message << "\n" if /\n\z/ !~ full_message end if log - full_message << "\n#{log.gsub(/^/, '| ')}" + full_message << "\n#{log.b.gsub(/^/, '| ')}" end full_message end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/