in reply to Re^4: Socket::getaddrinfo and localized error messages on Windows
in thread Socket::getaddrinfo and localized error messages on Windows

I created it in the Socket module bug tracker because I thought the related code was in the xs code of this module.

Cool .. that's a good place to start.
However, it's a bit tricky. That "related code" that you've indicated is inside an "#ifdef HAS_GETADDRINFO" block, and I don't know if "HAS_GETADDRINFO" is defined for your build of perl. On my 64-bit StrawberryPerl-5.32.1, I have:
C:\> perl -V:d_getaddrinfo d_getaddrinfo='undef';
Maybe "HAS_GETADDRINFO" gets defined somehow anyway, despite that Config setting ??

Cheers,
Rob

Replies are listed 'Best First'.
Re^6: Socket::getaddrinfo and localized error messages on Windows
by Yaribz (Beadle) on Apr 24, 2022 at 13:52 UTC

        Thanks for all this information, however the system getaddrinfo function is already used in my case (and in your case also I think ?).

        Indeed the error constants used aren't the ones defined for the emulated versions. Same for the error messages. Your message made me wonder if it was really the case, so I also added debug traces in Socket.pm to make sure of it.

        So I don't think your proposal (defining d_getaddrinfo and others) could change anything regarding the problem, but maybe I missed something or misunderstood ?