diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-06-10 09:15:55 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-06-10 09:15:55 +0000 |
commit | a610b0a959c58099597fcfa52443b806a7b3ab7f (patch) | |
tree | be5ea151f5a7d303789b69acb40b008da9835e8f /dir.c | |
parent | b28d9b6d18d67898e60b8e7e84526430bcdb55c7 (diff) | |
download | ruby-a610b0a959c58099597fcfa52443b806a7b3ab7f.tar.gz |
* 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@23661 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'dir.c')
-rw-r--r-- | dir.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -816,6 +816,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; |