From 30960b50811fac7579de17cfea453bdf0da8780c Mon Sep 17 00:00:00 2001 From: akr Date: Sun, 24 Aug 2008 10:40:37 +0000 Subject: * 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 --- io.c | 1 + 1 file changed, 1 insertion(+) (limited to 'io.c') 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; -- cgit