summaryrefslogtreecommitdiff
path: root/file.c
diff options
context:
space:
mode:
authoryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-07-12 14:44:37 +0000
committeryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-07-12 14:44:37 +0000
commit427da29757414558188c3e882f91e2eeebf1e897 (patch)
treefbee18f1241c94355a8ba2156d23df028a1d95b8 /file.c
parent8bab26ece6c7191766812f8846fa221c82fd6b70 (diff)
merges r23889 from trunk into ruby_1_9_1.
-- * file.c (file_expand_path): should copy original encoding. [ruby-dev:38612] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@24045 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'file.c')
-rw-r--r--file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/file.c b/file.c
index a4082b9b1f..050cbd2d64 100644
--- a/file.c
+++ b/file.c
@@ -2665,7 +2665,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 */