diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | io.c | 2 |
2 files changed, 5 insertions, 1 deletions
@@ -1,3 +1,7 @@ +Wed Jun 18 14:30:06 2008 NARUSE, Yui <naruse@ruby-lang.org> + + * io.c (rb_open_file): not rb_enc_get_index but rb_enc_get. + Wed Jun 18 13:49:58 2008 NAKAMURA Usaku <usa@ruby-lang.org> * include/ruby/win32.h (pipe): now pipe is textmode. although this @@ -4105,7 +4105,7 @@ rb_open_file(int argc, VALUE *argv, VALUE io) #if defined _WIN32 || defined __APPLE__ { static int fs_encoding; - int fname_encoding = rb_enc_get_index(fname); + int fname_encoding = rb_enc_get(fname); if (!fs_encoding) fs_encoding = rb_filesystem_encoding(); if (rb_usascii_encoding() != fname_encoding |