1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* io.c (make_writeconv): if enc and enc2 is set, convert

string.encoding to enc2.

* include/ruby/io.h: comment changed.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18692 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2008-08-18 13:35:55 +00:00
parent 035d4816c3
commit edc9581f16
3 changed files with 25 additions and 24 deletions

View file

@ -53,7 +53,7 @@ typedef struct rb_io_t {
* enc enc2 read action write action
* NULL NULL force_encoding(default_external) write the byte sequence of str
* e1 NULL force_encoding(e1) convert str.encoding to e1
* e1 e2 convert from e2 to e1 convert from e1 to e2
* e1 e2 convert from e2 to e1 convert str.encoding to e2
*/
rb_encoding *enc;
rb_encoding *enc2;