[issue26227] Windows: socket.gethostbyaddr(name) fails for non-ASCII hostname

Владимир Мартьянов report at bugs.python.org
Mon Mar 9 06:05:34 EDT 2020


Владимир Мартьянов <vilgeforce at gmail.com> added the comment:

I have Python 3.7.4 and have the same exception:
print (socket.gethostbyaddr("127.0.0.1"))
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xcf in position 6: invalid continuation byte

My OS is Win7 and my computer name contains cyrillic characters.

----------
nosy: +Владимир Мартьянов

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue26227>
_______________________________________


More information about the Python-bugs-list mailing list