Message259078
| Author |
vstinner |
| Recipients |
abarry, ezio.melotti, paul.moore, steve.dower, tim.golden, vstinner, zach.ware |
| Date |
2016年01月28日.00:58:50 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1453942730.98.0.111965775649.issue26227@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
On Windows, socket.gethostbyaddr() must decode the hostname from the ANSI code page, not from UTF-8. See for example this issue:
https://bugs.python.org/issue26226#msg259077
Attached patch changes the socket module to decode hostnames from the ANSI code page on Windows.
See also issues #9377, #16652 and #5004. |
|