summaryrefslogtreecommitdiff
path: root/test/pathname
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-09-28 06:34:13 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-09-28 06:34:13 +0000
commit37f9d089ed30477e1f7d8c54fde6047e7c1d3154 (patch)
tree3dea5e838c038cffae5978af253cfc3862f0190b /test/pathname
parent5c0e68c39c3fc7717311826549a30d1615eb2007 (diff)
check codepage for SJIS pathname test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13544 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/pathname')
-rw-r--r--test/pathname/test_pathname.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/pathname/test_pathname.rb b/test/pathname/test_pathname.rb
index 21a3ba6..206a0eb 100644
--- a/test/pathname/test_pathname.rb
+++ b/test/pathname/test_pathname.rb
@@ -174,7 +174,10 @@ class TestPathname < Test::Unit::TestCase
if DOSISH
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
def plus(path1, path2) # -> path