diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-07-03 15:38:58 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-07-03 15:38:58 +0000 |
commit | 4e273f76763d783852a01e58feb81e6e074d671f (patch) | |
tree | 58c936f7ac27659d101e0ac9a2266a56475c385c /test/pathname | |
parent | fdde6957f7d1cff1fc550ab5d4be141aae443eb9 (diff) |
Revert r36279; it breaks C API compatibility.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@36291 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/pathname')
-rw-r--r-- | test/pathname/test_pathname.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/test/pathname/test_pathname.rb b/test/pathname/test_pathname.rb index 61d288d68d..8a8c0d9844 100644 --- a/test/pathname/test_pathname.rb +++ b/test/pathname/test_pathname.rb @@ -1,3 +1,5 @@ +#!/usr/bin/env ruby + require 'test/unit' require 'pathname' @@ -183,8 +185,10 @@ class TestPathname < Test::Unit::TestCase if DOSISH defassert(:del_trailing_separator, "a", "a\\") - defassert(:del_trailing_separator, "\225\\".force_encoding("cp932"), "\225\\\\".force_encoding("cp932")) - defassert(:del_trailing_separator, "\225".force_encoding("cp437"), "\225\\\\".force_encoding("cp437")) + require 'Win32API' + if Win32API.new('kernel32', 'GetACP', nil, 'L').call == 932 + defassert(:del_trailing_separator, "\225\\", "\225\\\\") # SJIS + end end def test_plus |