1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* ext/win32ole/win32ole.c (ole_init_cp): initialize WIN32OLE.codepage

according to Encoding.default_external.

* test/win32ole/test_win32ole.rb: ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15488 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
suke 2008-02-15 11:36:24 +00:00
parent a05337f14d
commit 41ca14e8ac
3 changed files with 98 additions and 4 deletions

View file

@ -263,9 +263,12 @@ if defined?(WIN32OLE)
guid)
end
def test_s_codepage
assert_equal(WIN32OLE::CP_ACP, WIN32OLE.codepage)
end
#
# WIN32OLE.codepage is initialized according to Encoding.default_external.
#
# def test_s_codepage
# assert_equal(WIN32OLE::CP_ACP, WIN32OLE.codepage)
# end
def test_s_codepage_set
WIN32OLE.codepage = WIN32OLE::CP_UTF8