summaryrefslogtreecommitdiff
path: root/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'file.c')
-rw-r--r--file.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/file.c b/file.c
index ed033a71af..7c980f3732 100644
--- a/file.c
+++ b/file.c
@@ -2828,6 +2828,7 @@ rb_home_dir(const char *user, VALUE result)
}
}
#endif
+ rb_enc_associate_index(result, rb_filesystem_encindex());
return result;
}