* file.c (file_expand_path): should copy original encoding.
[ruby-dev:38612] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23889 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
c212f81dde
commit
b861b2a6b2
2
file.c
2
file.c
@ -2749,7 +2749,7 @@ file_expand_path(VALUE fname, VALUE dname, int abs_mode, VALUE result)
|
|||||||
memcpy(p, s, 2);
|
memcpy(p, s, 2);
|
||||||
p += 2;
|
p += 2;
|
||||||
s += 2;
|
s += 2;
|
||||||
rb_enc_associate_index(result, rb_usascii_encindex());
|
rb_enc_copy(result, fname);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
/* specified drive, but not full path */
|
/* specified drive, but not full path */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user