Issue #13521 has been reported by larskanis (Lars Kanis).

----------------------------------------
Bug #13521: [PATCH] Add fallback for DNS resolver registry key on Wine
https://bugs.ruby-lang.org/issues/13521

* Author: larskanis (Lars Kanis)
* Status: Open
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: ruby 2.4.1p111 (2017-03-22 revision 58053) [x64-mingw32]
* Backport: 2.2: UNKNOWN, 2.3: UNKNOWN, 2.4: UNKNOWN
----------------------------------------
Wine doesn't initialize the registry key per default:
  HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\DataBasePath

Therefore `gem install` fails with `Win32::Registry::Error`.

This patch uses the default path for the host file if the requested registry key isn't available. The hosts file itself is available on Wine, but it is empty and (due to the use of the underlying Linux resolver) not particular useful for Ruby.


---Files--------------------------------
0001-Add-fallback-for-DNS-resolver-registry-key-on-Wine.patch (1.17 KB)


-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>