diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-10-04 01:10:00 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-10-04 01:10:00 +0000 |
commit | 1e42b23ad27fd1510ba609031f51e1102dcfcdc9 (patch) | |
tree | 814ed47a1242e25cae615df328caa352c9e32c59 /test/ruby/test_dir_m17n.rb | |
parent | eaf7266dff97a0a6abf66b19c8a1b84144a0fbca (diff) | |
download | ruby-1e42b23ad27fd1510ba609031f51e1102dcfcdc9.tar.gz |
dir.c: normalize cwd
* dir.c (rb_dir_getwd): normalize OS path to UTF-8 on OS X.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52012 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_dir_m17n.rb')
-rw-r--r-- | test/ruby/test_dir_m17n.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/ruby/test_dir_m17n.rb b/test/ruby/test_dir_m17n.rb index f8fc1ef5e4..1d051143ae 100644 --- a/test/ruby/test_dir_m17n.rb +++ b/test/ruby/test_dir_m17n.rb @@ -395,4 +395,14 @@ class TestDir_M17N < Test::Unit::TestCase pp.assert_equal(orig, ents, bug7267) } end + + def test_pwd + with_tmpdir {|d| + orig = %W"d\u{e9}tente x\u{304c 304e 3050 3052 3054}" + orig.each do |n| + Dir.mkdir(n) + assert_equal(n, File.basename(Dir.chdir(n) {Dir.pwd})) + end + } + end end |