Project

General

Profile

Bug #3937

LC_ALL=zh_CN cause WIN32OLERuntimeError when require 'win32ole'

Added by oCameLo (oCameLo oTnTh) over 9 years ago. Updated over 8 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Target version:
ruby -v:
ruby 1.9.2p0 (2010-08-18) [i386-mingw32]
Backport:
[ruby-core:32758]

Description

=begin
zh_CN.gbk and zh_CN.utf8 work fine, but zh_CN not.

C:>ruby -v
ruby 1.9.2p0 (2010-08-18) [i386-mingw32]

C:>set LC_ALL=zh_CN.gbk

C:>ruby -e "require 'win32ole';puts 'ok'"
ok

C:>set LC_ALL=zh_CN

C:>ruby -e "require 'win32ole';puts 'ok'"
internal:lib/rubygems/custom_require:29:in require': codepage should be WIN32OLE::CP_ACP, WIN32OLE::CP_OEMCP, WIN32OLE::CP_MACCP, WIN32OLE::CP_THREAD_ACP, WIN32OLE::CP_SYMBOL, WIN32OLE::CP_UTF7, WIN32OLE::CP_UTF8, or installed codepage.(WIN32OLERuntimeError)
from <internal:lib/rubygems/custom_require>:29:in
require'
from D:/Opt/Ruby/Current/lib/ruby/1.9.1/win32ole.rb:1:in <top (required)>'
from <internal:lib/rubygems/custom_require>:29:in
require'
from internal:lib/rubygems/custom_require:29:in require'
from -e:1:in
'
=end

Associated revisions

Revision 59a88b94
Added by suke (Masaki Suketa) over 9 years ago

  • ext/win32ole/win32ole.c (ole_encoding2cp): set codepage 20936 according to GB2312. [Bug #3937] [ruby-core:32758]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29517 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision 29517
Added by suke (Masaki Suketa) over 9 years ago

  • ext/win32ole/win32ole.c (ole_encoding2cp): set codepage 20936 according to GB2312. [Bug #3937] [ruby-core:32758]

Revision 29517
Added by suke (Masaki Suketa) over 9 years ago

  • ext/win32ole/win32ole.c (ole_encoding2cp): set codepage 20936 according to GB2312. [Bug #3937] [ruby-core:32758]

Revision 29517
Added by suke (Masaki Suketa) over 9 years ago

  • ext/win32ole/win32ole.c (ole_encoding2cp): set codepage 20936 according to GB2312. [Bug #3937] [ruby-core:32758]

Revision 29517
Added by suke (Masaki Suketa) over 9 years ago

  • ext/win32ole/win32ole.c (ole_encoding2cp): set codepage 20936 according to GB2312. [Bug #3937] [ruby-core:32758]

Revision 29517
Added by suke (Masaki Suketa) over 9 years ago

  • ext/win32ole/win32ole.c (ole_encoding2cp): set codepage 20936 according to GB2312. [Bug #3937] [ruby-core:32758]

Revision 29517
Added by suke (Masaki Suketa) over 9 years ago

  • ext/win32ole/win32ole.c (ole_encoding2cp): set codepage 20936 according to GB2312. [Bug #3937] [ruby-core:32758]

Revision 27b1ee27
Added by yugui (Yuki Sonoda) about 9 years ago

merges r29517 from trunk into ruby_1_9_2.

  • ext/win32ole/win32ole.c (ole_encoding2cp): set codepage 20936 according to GB2312. [Bug #3937] [ruby-core:32758]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@30048 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

History

#1

Updated by naruse (Yui NARUSE) over 9 years ago

  • Status changed from Open to Rejected

=begin
intended; charset is needed for LC_ALL/LANG.
=end

Also available in: Atom PDF