diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-07-09 01:04:05 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-07-09 01:04:05 +0000 |
commit | abc0b2f10b8bcbd1aa62e11b864e81c0aca3ab1d (patch) | |
tree | 462181efba81b7b35f7595e3655c0c0e87186b00 /ext/dl | |
parent | d9726121e5ad56521a6769cd5a855eb45ef33ed5 (diff) | |
download | ruby-abc0b2f10b8bcbd1aa62e11b864e81c0aca3ab1d.tar.gz |
* 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
Diffstat (limited to 'ext/dl')
-rw-r--r-- | ext/dl/win32/lib/win32/registry.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/dl/win32/lib/win32/registry.rb b/ext/dl/win32/lib/win32/registry.rb index cca578ce01..abe9e36f9b 100644 --- a/ext/dl/win32/lib/win32/registry.rb +++ b/ext/dl/win32/lib/win32/registry.rb @@ -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 |