summaryrefslogtreecommitdiff
path: root/test/win32ole/test_folderitem2_invokeverb.rb
diff options
context:
space:
mode:
authorsuke <suke@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-02-16 04:38:06 +0000
committersuke <suke@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-02-16 04:38:06 +0000
commitd3f565ef2cf5ba65bd9303c686ea07232dac121c (patch)
treee345ebdfc42b95ffcbff849bde39b8bcbb10efa6 /test/win32ole/test_folderitem2_invokeverb.rb
parent2df0301c72cfe9117d9fbdec0383a481dfe5e354 (diff)
modify test according to changing WIN32OLE.codepage behavior.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15502 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/win32ole/test_folderitem2_invokeverb.rb')
-rw-r--r--test/win32ole/test_folderitem2_invokeverb.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/win32ole/test_folderitem2_invokeverb.rb b/test/win32ole/test_folderitem2_invokeverb.rb
index 853b05bed21..07cb9802d68 100644
--- a/test/win32ole/test_folderitem2_invokeverb.rb
+++ b/test/win32ole/test_folderitem2_invokeverb.rb
@@ -35,6 +35,11 @@ if defined?(WIN32OLE)
#
verbs = @fi2.verbs
verbs.extend(Enumerable)
+ @cp = WIN32OLE.codepage
+ begin
+ WIN32OLE.codepage = 932
+ rescue
+ end
@shortcut = verbs.collect{|verb|
verb.name
}.find {|name|
@@ -77,6 +82,7 @@ if defined?(WIN32OLE)
if @dummy_path
@fso.deleteFile(@dummy_path)
end
+ WIN32OLE.codepage = @cp
end
end