mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 13:04:13 +02:00
* 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:
parent
3f7bed0b80
commit
d34079b17a
3 changed files with 287 additions and 3 deletions
5
io.c
5
io.c
|
@ -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)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue