[issue9377] socket, PEP 383: Mishandling of non-ASCII bytes in host/domain names

Marc-Andre Lemburg report at bugs.python.org
Fri Oct 29 21:04:46 CEST 2010

Marc-Andre Lemburg <mal at egenix.com> added the comment:

Martin v. Löwis wrote:
> Martin v. Löwis <martin at v.loewis.de> added the comment:
> r85934 now uses GetComputerNameExW on Windows.

Thanks, Martin.

Here's a similar discussion of the Windows approach (used in bzr):


This is what Solaris uses:


(they require conversion to ASCII and using IDNA for non-ASCII

I found this RFC draft on the topic:
which suggests that there is no standard for the encoding
used by the socket host name APIs yet.

ASCII, UTF-8 and IDNA are happily mixed and matched.


Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list