Almad added the comment:
I'd add that this bug is very practical and can render a lot of software
unusable/noisy/confusing on Windows, including Django (I discovered this bug
when mentoring on Django Girls].
The simple step to reproduce is to take any windows and set regional settings
to non-English (I've used Czech). You can verify that using "import locale;
locale.getpreferredencoding()", that should display something else ("cp1250" in
my case).
Then, set "name" (= hostname, in Windows settings) of the computer to anything
containing non-ascii character (like "Didejo-noťas").
As Windows apparently encodes the hostname using their default encoding, it
fails with
```
File "C:\Python34\lib\wsgiref\simple_server.py", line 50, in server_bind
HTTPServer.server_bind(self)
File "C:\Python34\lib\http\server.py", line 135, in server_bind
self.server_name = socket.getfqdn(host)
File "C:\Python34\lib\socket.py", line 463, in getfqdn
hostname, aliases, ipaddrs = gethostbyaddr(name)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x9d in position 9: invalid
start byte
```
----------
nosy: +Almad
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue9377>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com