зеркало из https://github.com/github/ruby.git
* ext/{dl,fiddle}/win32/lib/win32/registry.rb
(Win32::Registry::Error#initialize): use suitable encoding for the string. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41845 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
d9726121e5
Коммит
abc0b2f10b
|
@ -1,3 +1,9 @@
|
|||
Tue Jul 9 10:02:45 2013 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||
|
||||
* ext/{dl,fiddle}/win32/lib/win32/registry.rb
|
||||
(Win32::Registry::Error#initialize): use suitable encoding for the
|
||||
string.
|
||||
|
||||
Tue Jul 9 09:46:53 2013 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||
|
||||
* ext/dl/win32/lib/win32/registry.rb (Win32::Registry.expand_environ):
|
||||
|
|
|
@ -174,7 +174,7 @@ For detail, see the MSDN[http://msdn.microsoft.com/library/en-us/sysinfo/base/pr
|
|||
msg = WCHAR_SPACE * 1024
|
||||
len = FormatMessageW.call(0x1200, 0, code, 0, msg, 1024, 0)
|
||||
msg = msg[0, len].encode
|
||||
super msg.tr("\r", '').chomp
|
||||
super msg.tr("\r".encode(msg.encoding), '').chomp
|
||||
end
|
||||
attr_reader :code
|
||||
end
|
||||
|
|
|
@ -174,7 +174,7 @@ For detail, see the MSDN[http://msdn.microsoft.com/library/en-us/sysinfo/base/pr
|
|||
msg = WCHAR_SPACE * 1024
|
||||
len = FormatMessageW.call(0x1200, 0, code, 0, msg, 1024, 0)
|
||||
msg = msg[0, len].encode
|
||||
super msg.tr("\r", '').chomp
|
||||
super msg.tr("\r".encode(msg.encoding), '').chomp
|
||||
end
|
||||
attr_reader :code
|
||||
end
|
||||
|
|
Загрузка…
Ссылка в новой задаче