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

ruby-changes:7969

From: akr <ko1@a...>
Date: Tue, 23 Sep 2008 21:46:31 +0900 (JST)
Subject: [ruby-changes:7969] Ruby:r19492 (trunk): * io.c (copy_stream_body): use io_binwrite instead of io_fwrite.

akr	2008-09-23 21:46:17 +0900 (Tue, 23 Sep 2008)

  New Revision: 19492

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

  Log:
    * io.c (copy_stream_body): use io_binwrite instead of io_fwrite.

  Modified files:
    trunk/ChangeLog
    trunk/io.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 19491)
+++ ChangeLog	(revision 19492)
@@ -1,3 +1,7 @@
+Tue Sep 23 21:45:02 2008  Tanaka Akira  <akr@f...>
+
+	* io.c (copy_stream_body): use io_binwrite instead of io_fwrite.
+
 Tue Sep 23 21:31:16 2008  Tadayoshi Funaba  <tadf@d...>
 
 	* test/ruby/test_rational2.rb: updated.
Index: io.c
===================================================================
--- io.c	(revision 19491)
+++ io.c	(revision 19492)
@@ -7464,7 +7464,7 @@
         rb_str_resize(str,len);
         read_buffered_data(RSTRING_PTR(str), len, src_fptr);
         if (dst_fptr) /* IO or filename */
-            io_fwrite(str, dst_fptr, 0);
+            io_binwrite(str, dst_fptr, 0);
         else /* others such as StringIO */
             rb_io_write(stp->dst, str);
         stp->total += len;

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

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