diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-10-19 12:10:14 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-10-19 12:10:14 +0000 |
commit | 2f92c3f9a256d19f1cf2ac32d607812c4fe4afe7 (patch) | |
tree | 7b7220eaf21f00172024402a172145f372be1d85 | |
parent | 3216adcd871cf0cca0409ddf503584d21295420e (diff) | |
download | ruby-2f92c3f9a256d19f1cf2ac32d607812c4fe4afe7.tar.gz |
file.c: fix typos
* file.c (rb_file_expand_path_internal): fix typos.
[ruby-core:71111] [Bug #11601]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52192 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | file.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -3558,9 +3558,9 @@ rb_file_expand_path_internal(VALUE fname, VALUE dname, int abs_mode, int long_na *p = '/'; #endif rb_str_set_len(result, p - buf + strlen(p)); - encidx = ENC_GET(result); + encidx = ENCODING_GET(result); tmp = result; - if (encidx != ENCIDX_UTF_8 && rb_enc_str_coderange(result) != ENC_CODERANGE_7BIT) { + if (encidx != ENCINDEX_UTF_8 && rb_enc_str_coderange(result) != ENC_CODERANGE_7BIT) { tmp = rb_str_encode_ospath(result); } len = MultiByteToWideChar(CP_UTF8, 0, RSTRING_PTR(tmp), -1, NULL, 0); |