[前][次][番号順一覧][スレッド一覧]

ruby-changes:2053

From: ko1@a...
Date: 28 Sep 2007 15:34:44 +0900
Subject: [ruby-changes:2053] akr - Ruby:r13544 (trunk): check codepage for SJIS pathname test.

akr	2007-09-28 15:34:13 +0900 (Fri, 28 Sep 2007)

  New Revision: 13544

  Modified files:
    trunk/test/pathname/test_pathname.rb

  Log:
    check codepage for SJIS pathname test.


  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/test/pathname/test_pathname.rb?r1=13544&r2=13543

Index: test/pathname/test_pathname.rb
===================================================================
--- test/pathname/test_pathname.rb	(revision 13543)
+++ test/pathname/test_pathname.rb	(revision 13544)
@@ -174,7 +174,10 @@
 
   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

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml

[前][次][番号順一覧][スレッド一覧]