* 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:
nobu 2009-06-29 08:14:39 +00:00
parent c212f81dde
commit b861b2a6b2
2 changed files with 39 additions and 1243 deletions

1280
ChangeLog

File diff suppressed because it is too large Load Diff

2
file.c
View File

@ -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 */