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:
parent
5c0e68c39c
commit
37f9d089ed
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue