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

ruby-changes:8496

From: yugui <ko1@a...>
Date: Thu, 30 Oct 2008 01:01:07 +0900 (JST)
Subject: [ruby-changes:8496] Ruby:r20029 (ruby_1_9_1): merged r19979 from trunk into ruby_1_9_1.

yugui	2008-10-30 01:00:59 +0900 (Thu, 30 Oct 2008)

  New Revision: 20029

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

  Log:
    merged r19979 from trunk into ruby_1_9_1.
        * test/ruby/test_argf.rb (test_readpartial2): readpartial works just like
          binmode, so input of it should be binmode'ed.

  Modified files:
    branches/ruby_1_9_1/test/ruby/test_argf.rb

Index: ruby_1_9_1/test/ruby/test_argf.rb
===================================================================
--- ruby_1_9_1/test/ruby/test_argf.rb	(revision 20028)
+++ ruby_1_9_1/test/ruby/test_argf.rb	(revision 20029)
@@ -490,9 +490,11 @@
           t = ""; ARGF.readpartial(1, t); s << t
         end
       rescue EOFError
+        $stdout.binmode
         puts s
       end
     SRC
+      f.binmode
       f.puts("foo")
       f.puts("bar")
       f.puts("baz")

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

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