mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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 changed files with 39 additions and 1243 deletions
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);
|
||||
p += 2;
|
||||
s += 2;
|
||||
rb_enc_associate_index(result, rb_usascii_encindex());
|
||||
rb_enc_copy(result, fname);
|
||||
}
|
||||
else {
|
||||
/* specified drive, but not full path */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue