1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* encoding (set_base_encoding): must use rb_enc_dummy_p.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14982 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2008-01-11 00:39:44 +00:00
parent 78900b98b3
commit 9e35ba455d
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
Fri Jan 11 09:23:31 2008 NARUSE, Yui <naruse@ruby-lang.org>
* encoding (set_base_encoding): must use rb_enc_dummy_p.
Fri Jan 11 06:13:14 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
* encoding.c (rb_to_encoding_index, rb_to_encoding): disallow nil.

View file

@ -205,7 +205,7 @@ set_base_encoding(int index, rb_encoding *base)
VALUE enc = rb_enc_from_encoding(enc_table[index].enc);
rb_ivar_set(enc, id_base_encoding, rb_enc_from_encoding(base));
if (ENC_DUMMY_P(base)) FL_SET(enc, ENC_DUMMY);
if (rb_enc_dummy_p(base)) FL_SET(enc, ENC_DUMMY);
return enc;
}