ruby-changes:15899
From: yugui <ko1@a...>
Date: Sun, 16 May 2010 21:17:43 +0900 (JST)
Subject: [ruby-changes:15899] Ruby:r27841 (ruby_1_9_2): merges r27791 from trunk into ruby_1_9_2.
yugui 2010-05-16 21:16:13 +0900 (Sun, 16 May 2010) New Revision: 27841 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=27841 Log: merges r27791 from trunk into ruby_1_9_2. -- * test/ruby/test_io_m17n.rb (test_textmode_paragraph_binaryread): use opened pipes by with_pipe. Modified files: branches/ruby_1_9_2/test/ruby/test_io_m17n.rb Index: ruby_1_9_2/test/ruby/test_io_m17n.rb =================================================================== --- ruby_1_9_2/test/ruby/test_io_m17n.rb (revision 27840) +++ ruby_1_9_2/test/ruby/test_io_m17n.rb (revision 27841) @@ -1794,10 +1794,8 @@ def test_textmode_paragraph_binaryread with_pipe("US-ASCII:UTF-8", :universal_newline => true) do |r, w| - r, w = IO.pipe w << "a\n\n\ncdefgh".gsub(/\n/, "\r\n") w.close - r.set_encoding("US-ASCII:UTF-8", :universal_newline => true) assert_equal("a\n\n", r.gets("")) assert_equal("c", r.getc) assert_equal("defgh", r.readpartial(10)) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/