1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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

View file

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