summaryrefslogtreecommitdiffstats
path: root/dir.c
diff options
context:
space:
mode:
authoryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-06-21 09:14:14 +0000
committeryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-06-21 09:14:14 +0000
commita67937fb346f84e449d3cffe9ce2fc4236f93e2f (patch)
tree9b79d3f0315ba647bab513ed134436411b32ca8a /dir.c
parente8508858a4eba91f50cffa6029580ebf6ddb1356 (diff)
merges r23661 from trunk into ruby_1_9_1.
-- * dir.c (dir_s_getwd): directory path's encoding should be filesystem's one. * lib/tmpdir.rb: ditto (but not finished yet.) git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@23781 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'dir.c')
-rw-r--r--dir.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/dir.c b/dir.c
index 5a46f1bfc..a79d8e5b2 100644
--- a/dir.c
+++ b/dir.c
@@ -802,6 +802,7 @@ dir_s_getwd(VALUE dir)
rb_secure(4);
path = my_getcwd();
cwd = rb_tainted_str_new2(path);
+ rb_enc_associate(cwd, rb_filesystem_encoding());
xfree(path);
return cwd;