[New-bugs-announce] [issue10097] platform.uname gives UnicodeError for non-ASCII computer names on Windows
Martin v. Löwis
report at bugs.python.org
Thu Oct 14 08:10:13 CEST 2010
New submission from Martin v. Löwis <martin at v.loewis.de>:
Reportedly, platform.uname gives UnicodeError for non-ASCII computer names on Windows, see http://www.pasteall.org/16215
I think it is incorrect that _node uses socket.gethostname on Windows. uname() should return the local hostname (i.e. the one that the system itself believes to have), independent of the network configuration or DNS.
Therefore, I think it should return the COMPUTERNAME environment variable, or the result of the GetComputerName() API.
----------
messages: 118615
nosy: loewis
priority: normal
severity: normal
status: open
title: platform.uname gives UnicodeError for non-ASCII computer names on Windows
versions: Python 3.1, Python 3.2
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10097>
_______________________________________
More information about the New-bugs-announce
mailing list