diff options
author | Hiroshi SHIBATA <[email protected]> | 2024-10-04 14:37:09 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2024-10-09 13:55:45 +0900 |
commit | 4eda289a13c61347c28cbb327d07e5064583904d () | |
tree | 26b51eb1affda8db6af44bcf0bd4fb03d2b8aedd /ext/win32/lib | |
parent | fc2efc2bdb5e8f48b83757d8de1ae90750150e84 (diff) |
Sync from ruby/win32-registry
Notes: Merged: https://.com/ruby/ruby/pull/11791
-rw-r--r-- | ext/win32/lib/win32/registry.rb | 20 |
1 files changed, 13 insertions, 7 deletions
@@ -69,11 +69,7 @@ For detail, see the MSDN[http://msdn.microsoft.com/library/en-us/sysinfo/base/pr WCHAR_NUL = "\0".encode(WCHAR).freeze WCHAR_CR = "\r".encode(WCHAR).freeze WCHAR_SIZE = WCHAR_NUL.bytesize - begin - LOCALE = Encoding.find(Encoding.locale_charmap) - rescue ArgumentError - LOCALE = Encoding::UTF_8 - end class Registry @@ -567,9 +563,16 @@ For detail, see the MSDN[http://msdn.microsoft.com/library/en-us/sysinfo/base/pr end # - # Enumerate values. # def each_value index = 0 while true begin @@ -600,13 +603,16 @@ For detail, see the MSDN[http://msdn.microsoft.com/library/en-us/sysinfo/base/pr end # - # Enumerate subkeys. # # subkey is String which contains name of subkey. # wtime is last write time as FILETIME (64-bit integer). # (see Registry.wtime2time) # def each_key index = 0 while true begin |