Skip to content

Commit 0f1a107

Browse files
committed
* io.c (copy_stream_body): use io_binwrite instead of io_fwrite.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19492 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent 74cb050 commit 0f1a107

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

ChangeLog

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
15
Tue Sep 23 21:31:16 2008 Tadayoshi Funaba <tadf@dotrb.org>
26

37
* test/ruby/test_rational2.rb: updated.

io.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7464,7 +7464,7 @@ copy_stream_body(VALUE arg)
74647464
rb_str_resize(str,len);
74657465
read_buffered_data(RSTRING_PTR(str), len, src_fptr);
74667466
if (dst_fptr) /* IO or filename */
7467-
io_fwrite(str, dst_fptr, 0);
7467+
io_binwrite(str, dst_fptr, 0);
74687468
else /* others such as StringIO */
74697469
rb_io_write(stp->dst, str);
74707470
stp->total += len;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy