check codepage for SJIS pathname test.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13544 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2007-09-28 06:34:13 +00:00
parent 5c0e68c39c
commit 37f9d089ed
1 changed files with 4 additions and 1 deletions

View File

@ -174,8 +174,11 @@ class TestPathname < Test::Unit::TestCase
if DOSISH
defassert(:del_trailing_separator, "a", "a\\")
require 'Win32API'
if Win32API.new('kernel32', 'GetACP', nil, 'L').call == 932
defassert(:del_trailing_separator, "\225\\", "\225\\\\") # SJIS
end
end
def plus(path1, path2) # -> path
(Pathname.new(path1) + Pathname.new(path2)).to_s