[issue9377] socket, PEP 383: Mishandling of non-ASCII bytes in host/domain names

Nathan Letwory report at bugs.python.org
Wed Oct 13 22:50:29 CEST 2010


Nathan Letwory <nathan at letworyinteractive.com> added the comment:

platform.system() fails with UnicodeEncodeError on systems that have their computer name set to a name containing non-ascii characters. The implementation of platform.system() uses at some point socket.gethostname() ( see http://www.pasteall.org/16215 for a stacktrace of such usage)

There are a lot of our Blender users that are not english native-speakers and they set up their machine as they please, against RCFs or not.

This currently breaks some code that use platform.system() to check the system it's run on. The paste from above is from a user who has named his computer Nötkötti.

It would be more than great if this error could be fixed. If another 3.1 release is planned, preferrably for that.

----------
nosy: +jesterKing

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9377>
_______________________________________


More information about the Python-bugs-list mailing list