summaryrefslogtreecommitdiffstats
path: root/io.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-08-24 10:40:37 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-08-24 10:40:37 +0000
commit30960b50811fac7579de17cfea453bdf0da8780c (patch)
tree1609ae37b1445c8300d5e628672c0f2f309e735f /io.c
parent2995440dcba2257ae39511ca6ba05217e62f5b3a (diff)
downloadruby-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.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/io.c b/io.c
index c6abc43b1..9e919c075 100644
--- a/io.c
+++ b/io.c
@@ -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;