* win32/win32.c (rb_w32_uchmod): typo. [Bug#5671] [ruby-dev:44898]

* test/ruby/test_file.rb (TestFile#test_chmod_m17n): test of above bug.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33873 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
usa 2011-11-28 00:33:18 +00:00
parent 543820885e
commit 5bc28059b0
3 changed files with 16 additions and 1 deletions

View file

@ -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