diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-24 10:40:37 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-24 10:40:37 +0000 |
commit | 30960b50811fac7579de17cfea453bdf0da8780c (patch) | |
tree | 1609ae37b1445c8300d5e628672c0f2f309e735f /io.c | |
parent | 2995440dcba2257ae39511ca6ba05217e62f5b3a (diff) | |
download | ruby-30960b50811fac7579de17cfea453bdf0da8780c.tar.gz ruby-30960b50811fac7579de17cfea453bdf0da8780c.tar.xz ruby-30960b50811fac7579de17cfea453bdf0da8780c.zip |
* io.c (rb_io_init_copy): copy encs.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18822 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -5075,6 +5075,7 @@ rb_io_init_copy(VALUE dest, VALUE io) /* copy rb_io_t structure */ fptr->mode = orig->mode & ~FMODE_PREP; + fptr->encs = orig->encs; fptr->pid = orig->pid; fptr->lineno = orig->lineno; if (!NIL_P(orig->pathv)) fptr->pathv = orig->pathv; |