[前][次][番号順一覧][スレッド一覧]

ruby-changes:48794

From: nobu <ko1@a...>
Date: Sun, 26 Nov 2017 11:11:30 +0900 (JST)
Subject: [ruby-changes:48794] nobu:r60910 (trunk): leakchecker.rb: no conversion

nobu	2017-11-26 11:11:24 +0900 (Sun, 26 Nov 2017)

  New Revision: 60910

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=60910

  Log:
    leakchecker.rb: no conversion

  Modified files:
    trunk/test/lib/leakchecker.rb
Index: test/lib/leakchecker.rb
===================================================================
--- test/lib/leakchecker.rb	(revision 60909)
+++ test/lib/leakchecker.rb	(revision 60910)
@@ -198,6 +198,10 @@ class LeakChecker https://github.com/ruby/ruby/blob/trunk/test/lib/leakchecker.rb#L198
   end
 
   def puts(*a)
-    MiniTest::Unit.output.puts(*a)
+    output = MiniTest::Unit.output
+    if defined?(output.set_encoding)
+      output.set_encoding(nil, nil)
+    end
+    output.puts(*a)
   end
 end

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]