* 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
This commit is contained in:
akr 2008-08-21 10:07:21 +00:00
parent 3f7bed0b80
commit d34079b17a
3 changed files with 287 additions and 3 deletions

5
io.c
View file

@ -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)) {