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
This commit is contained in:
parent
c92322b537
commit
a3ac9d0bb6
4
file.c
4
file.c
@ -3558,9 +3558,9 @@ rb_file_expand_path_internal(VALUE fname, VALUE dname, int abs_mode, int long_na
|
|||||||
*p = '/';
|
*p = '/';
|
||||||
#endif
|
#endif
|
||||||
rb_str_set_len(result, p - buf + strlen(p));
|
rb_str_set_len(result, p - buf + strlen(p));
|
||||||
encidx = ENC_GET(result);
|
encidx = ENCODING_GET(result);
|
||||||
tmp = 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);
|
tmp = rb_str_encode_ospath(result);
|
||||||
}
|
}
|
||||||
len = MultiByteToWideChar(CP_UTF8, 0, RSTRING_PTR(tmp), -1, NULL, 0);
|
len = MultiByteToWideChar(CP_UTF8, 0, RSTRING_PTR(tmp), -1, NULL, 0);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user