summaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
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 98a203239..256c348d0 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 */