http://bugs.winehq.org/show_bug.cgi?id=29756
Bug #: 29756 Summary: ws2_32: getaddrinfo edge cases broken on OS X Product: Wine Version: unspecified Platform: x86 OS/Version: Mac OS X Status: UNCONFIRMED Severity: normal Priority: P2 Component: winsock AssignedTo: wine-bugs@winehq.org ReportedBy: code@klickverbot.at Classification: Unclassified
getaddrinfo() responds differently to edge cases on Windows, Linux and OS X; notably, the Winsock incarnation accepts more combinations of null/empty host/port strings than the others do. Some steps to resolve the issues this creates for Wine clients have been made in commits 75be2284 and 8e5d5bf5.
Unfortunately, the current implementation (1.4-rc1, Git f0cfa7cf) does not work on OS X, because the host part of the FQDN of the local machine usually doesn't resolve. The attached patch fixes this issue and another difference in behavior between Winsock/Windows and Wine/OSX.
While tracking this down, I compared a number of param/flag combinations; the detailed results are at http://klickverbot.at/blog/2012/01/getaddrinfo-edge-case-behavior-on-windows....