summaryrefslogtreecommitdiffstats
path: root/io.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-08-24 03:22:43 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-08-24 03:22:43 +0000
commit47cb9c89dfabc25b75cc8647652c5ba88b943b6f (patch)
tree47d0543ac4d9a8b5339fa97b17c52eb6d5b7c01f /io.c
parent03c2ee26f9daa4206eb9bb28980161d15a2b830e (diff)
downloadruby-47cb9c89dfabc25b75cc8647652c5ba88b943b6f.tar.gz
ruby-47cb9c89dfabc25b75cc8647652c5ba88b943b6f.tar.xz
ruby-47cb9c89dfabc25b75cc8647652c5ba88b943b6f.zip
* include/ruby/encoding.h (rb_econv_substr_append): renamed from
rb_econv_string. (rb_econv_str_convert): declared. (rb_econv_substr_convert): declared. (rb_econv_str_append): declared. * io.c (io_fwrite): use rb_econv_str_convert instead of rb_econv_string. * transcode.c (rb_econv_substr_append): renamed from rb_econv_string. (rb_econv_str_append): new function. (rb_econv_substr_convert): ditto. (rb_econv_str_convert): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18806 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r--io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/io.c b/io.c
index 15eaba9d9..702e28706 100644
--- a/io.c
+++ b/io.c
@@ -745,7 +745,7 @@ io_fwrite(VALUE str, rb_io_t *fptr)
if (!NIL_P(fptr->writeconv_stateless)) {
str = rb_str_transcode(str, fptr->writeconv_stateless);
}
- str = rb_econv_string(fptr->writeconv, str, 0, RSTRING_LEN(str), Qnil, ECONV_PARTIAL_INPUT);
+ str = rb_econv_str_convert(fptr->writeconv, str, ECONV_PARTIAL_INPUT);
}
else {
if (fptr->enc2)