[issue9377] socket, PEP 383: Mishandling of non-ASCII bytes in host/domain names
Martin v. Löwis
report at bugs.python.org
Wed May 2 08:25:37 CEST 2012
Martin v. Löwis <martin at v.loewis.de> added the comment:
For Windows versions that support it, we could use GetNameInfoW, available on XPSP2+, W2k3+ and Vista+.
The questions then are: what to do about gethostbyaddr, and what to do about the general case?
Since the problem appears to be specific to Windows, it might be appropriate to find a solution to just the Windows case, and ignore the general issue. For gethostbyaddr, decoding would then use CP_ACP.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9377>
_______________________________________
More information about the Python-bugs-list
mailing list