Martin v. Löwis <mar...@v.loewis.de> added the comment: > Sorry, I didn't mean how Windows constructs the result for the > "A" interface - I was talking about Python code being able to map > the result from the Unicode interface to the form used in the > protocol (e.g. DNS). I believe the proposal is to use the DNS > name
I disagree with the proposal - it should return whatever name gethostname from winsock.dll returns (which I expect to be the netbios name). > so since the DNS is byte oriented, I would have thought > that the Unicode "DNS name" result would always have a bytes > equivalent that the DNS resolver code would use - perhaps its > UTF-8 encoding? No no no. When Microsoft calls it the DNS name, they don't actually mean that it has to do anything with DNS. In particular, it's not byte-oriented. ---------- title: socket, PEP 383: Mishandling of non-ASCII bytes in host/domain names -> socket, PEP 383: Mishandling of non-ASCII bytes in host/domain names _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue9377> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com