summaryrefslogtreecommitdiff
path: root/file.c
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-05-27 14:47:29 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-05-27 14:47:29 +0000
commit97c175fa19d0d58eaabace94f737c4c08368b476 (patch)
tree2faf774fe61abce760265a0d1ecde298ed04924d /file.c
parent84abef0fc08f7182f9c76175ef478898612b0bdf (diff)
downloadruby-97c175fa19d0d58eaabace94f737c4c08368b476.tar.gz
* file.c (rb_home_dir): set filesystem encoding.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28040 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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;
}