summaryrefslogtreecommitdiff
path: root/test/ruby/test_file.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby/test_file.rb')
-rw-r--r--test/ruby/test_file.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/ruby/test_file.rb b/test/ruby/test_file.rb
index c40bf43e25..cc266a4c4a 100644
--- a/test/ruby/test_file.rb
+++ b/test/ruby/test_file.rb
@@ -195,4 +195,13 @@ class TestFile < Test::Unit::TestCase
puts '#{bug5596}'
EOS
end
+
+ def test_chmod_m17n
+ bug5671 = '[ruby-dev:44898]'
+ Dir.mktmpdir('test-file-chmod-m17n-') do |tmpdir|
+ file = File.join(tmpdir, "\u3042")
+ File.open(file, 'w'){}
+ assert_equal(File.chmod(0666, file), 1, bug5671)
+ end
+ end
end