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

ruby-changes:35898

From: akr <ko1@a...>
Date: Thu, 16 Oct 2014 21:27:57 +0900 (JST)
Subject: [ruby-changes:35898] akr:r47979 (trunk): Set ASCII-8BIT encoding.

akr	2014-10-16 21:27:43 +0900 (Thu, 16 Oct 2014)

  New Revision: 47979

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

  Log:
    Set ASCII-8BIT encoding.

  Modified files:
    trunk/test/-ext-/bug_reporter/test_bug_reporter.rb
Index: test/-ext-/bug_reporter/test_bug_reporter.rb
===================================================================
--- test/-ext-/bug_reporter/test_bug_reporter.rb	(revision 47978)
+++ test/-ext-/bug_reporter/test_bug_reporter.rb	(revision 47979)
@@ -18,6 +18,7 @@ class TestBugReporter < Test::Unit::Test https://github.com/ruby/ruby/blob/trunk/test/-ext-/bug_reporter/test_bug_reporter.rb#L18
             "-C", tmpdir]
     stdin = "register_sample_bug_reporter(12345); Process.kill :SEGV, $$; sleep"
     _, stderr, status = EnvUtil.invoke_ruby(args, stdin, false, true)
+    stderr.force_encoding("ASCII-8BIT")
     assert_pattern_list(expected_stderr, stderr)
   ensure
     FileUtils.rm_rf(tmpdir) if tmpdir

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

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