[issue26227] Windows: socket.gethostbyaddr(name) fails for non-ASCII hostname
Steve Dower
report at bugs.python.org
Mon Mar 9 06:15:36 EDT 2020
Steve Dower <steve.dower at python.org> added the comment:
Looks like what was actually applied was changed to PyUnicode_DecodeFSDefault, which was later changed on Windows to be always UTF-8.
They'll need to be normalised throughout Modules/socketmodule.c (I can't tell at a quick glance which need updating). We should also figure out some kind of test that can catch this sort of issue.
Sorry for guiding you wrong a few years ago, Victor!
----------
resolution: fixed ->
stage: -> test needed
status: closed -> open
versions: +Python 3.8, Python 3.9
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue26227>
_______________________________________
More information about the Python-bugs-list
mailing list