summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-06-18 05:31:35 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-06-18 05:31:35 +0000
commit235df5064824ab4e84f89d2208bc7437cd490ed5 (patch)
tree6b78821fe94164c670f966f7729041554027d91a /io.c
parent844952338be1dcc2fc2e726af14cdc76c3b7ac94 (diff)
* io.c (rb_open_file): not rb_enc_get_index but rb_enc_get.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17401 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r--io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/io.c b/io.c
index 8aa065718e..4084f0aeb6 100644
--- a/io.c
+++ b/io.c
@@ -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