We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74cb050 commit 0f1a107Copy full SHA for 0f1a107
ChangeLog
@@ -1,3 +1,7 @@
1
+Tue Sep 23 21:45:02 2008 Tanaka Akira <akr@fsij.org>
2
+
3
+ * io.c (copy_stream_body): use io_binwrite instead of io_fwrite.
4
5
Tue Sep 23 21:31:16 2008 Tadayoshi Funaba <tadf@dotrb.org>
6
7
* test/ruby/test_rational2.rb: updated.
io.c
@@ -7464,7 +7464,7 @@ copy_stream_body(VALUE arg)
7464
rb_str_resize(str,len);
7465
read_buffered_data(RSTRING_PTR(str), len, src_fptr);
7466
if (dst_fptr) /* IO or filename */
7467
- io_fwrite(str, dst_fptr, 0);
+ io_binwrite(str, dst_fptr, 0);
7468
else /* others such as StringIO */
7469
rb_io_write(stp->dst, str);
7470
stp->total += len;
0 commit comments