From 47cb9c89dfabc25b75cc8647652c5ba88b943b6f Mon Sep 17 00:00:00 2001 From: akr Date: Sun, 24 Aug 2008 03:22:43 +0000 Subject: * 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 --- io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'io.c') 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) -- cgit