summaryrefslogtreecommitdiff
path: root/file.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-06-29 08:14:39 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-06-29 08:14:39 +0000
commitb861b2a6b2eb4deda6e842c705cf6b602fad3784 (patch)
treefffca50473a3b5ec1d79d2f49ef76cd7f76af30d /file.c
parentc212f81dde8dc5b26c9d6552752d1454e92b6947 (diff)
* 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
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 98a203239f..256c348d0f 100644
--- a/file.c
+++ b/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 */