diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-18 06:07:38 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-18 06:07:38 +0000 |
commit | 58d694fcdb247ca3ba66e12eb0cae97a3dda4cea (patch) | |
tree | b0bdf9132a24b4b2713cb0428cb3194a03ceb837 /io.c | |
parent | a966b61fd2064241c9a0c9624c7329b5b1569c81 (diff) |
* io.c (rb_open_file): fs_encoding and fname_encoding is
rb_encoding *.
fixed [ruby-dev:35151]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17403 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -4104,8 +4104,8 @@ rb_open_file(int argc, VALUE *argv, VALUE io) rb_scan_args(argc, argv, "12", &fname, &vmode, &perm); #if defined _WIN32 || defined __APPLE__ { - static int fs_encoding; - int fname_encoding = rb_enc_get(fname); + static rb_encoding *fs_encoding; + rb_encoding *fname_encoding = rb_enc_get(fname); if (!fs_encoding) fs_encoding = rb_filesystem_encoding(); if (rb_usascii_encoding() != fname_encoding |