diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-12-09 18:15:04 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-12-09 18:15:04 +0000 |
commit | 70f8856b75a8eff4dcbc4364f1e63c95f2c01974 (patch) | |
tree | 23a8cb98ac5226603252deb21c6920c3eec0fbaf /io.c | |
parent | 7b16ef88b4fa7d440f9092ddce34907b97f04fad (diff) | |
download | ruby-70f8856b75a8eff4dcbc4364f1e63c95f2c01974.tar.gz |
dir.c, io.c: use rb_id_encoding
* dir.c (dir_initialize): rb_id_encoding() returns same ID with
caching.
* io.c (Init_IO): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53012 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -12494,7 +12494,7 @@ Init_IO(void) sym_flags = ID2SYM(rb_intern("flags")); sym_extenc = ID2SYM(rb_intern("external_encoding")); sym_intenc = ID2SYM(rb_intern("internal_encoding")); - sym_encoding = ID2SYM(rb_intern("encoding")); + sym_encoding = ID2SYM(rb_id_encoding()); sym_open_args = ID2SYM(rb_intern("open_args")); sym_textmode = ID2SYM(rb_intern("textmode")); sym_binmode = ID2SYM(rb_intern("binmode")); |