From 3b86d7ab834fd4326be519f2f74989e8a5186065 Mon Sep 17 00:00:00 2001 From: akr Date: Fri, 28 Sep 2007 06:34:13 +0000 Subject: check codepage for SJIS pathname test. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13544 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/pathname/test_pathname.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/pathname/test_pathname.rb b/test/pathname/test_pathname.rb index 21a3ba68a..206a0eb10 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 -- cgit