diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-21 10:07:21 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-21 10:07:21 +0000 |
commit | d34079b17a82ca0c3012a9eb0b99689ac65c585c (patch) | |
tree | aa1b3be1ec32f745dfc96351f36ec58547518503 /io.c | |
parent | 3f7bed0b805fbb4cd9c88d59a1516eacd22170e5 (diff) | |
download | ruby-d34079b17a82ca0c3012a9eb0b99689ac65c585c.tar.gz |
* io.c (io_extract_encoding_option): if internal encoding is not
specified, enc is external encoding.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18751 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -3782,9 +3782,12 @@ io_extract_encoding_option(VALUE opt, rb_encoding **enc_p, rb_encoding **enc2_p) } else { *enc_p = intencoding; + *enc2_p = extencoding; } } - *enc2_p = extencoding; + else { + *enc_p = extencoding; + } } else { if (!NIL_P(intenc)) { |