From a3ac9d0bb68ee8723cdd8896489b7808972f1d57 Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 19 Oct 2015 12:10:14 +0000 Subject: 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 --- file.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'file.c') diff --git a/file.c b/file.c index 04e3b4b8f3..616f68f984 100644 --- a/file.c +++ b/file.c @@ -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); -- cgit v1.2.3