[issue10097] platform.uname gives UnicodeError for non-ASCII computer names on Windows

2010-10-14 Thread Marc-Andre Lemburg
Changes by Marc-Andre Lemburg : -- resolution: -> wont fix status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing

[issue10097] platform.uname gives UnicodeError for non-ASCII computer names on Windows

2010-10-14 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Martin v. Löwis wrote: > > Martin v. Löwis added the comment: > >> More evidence that the NetBIOS name is used: >> >> http://msdn.microsoft.com/en-us/library/aa368009(VS.85).aspx >> http://msdn.microsoft.com/en-us/library/ms724295(v=VS.85).aspx >> >> One

[issue10097] platform.uname gives UnicodeError for non-ASCII computer names on Windows

2010-10-14 Thread Ned Deily
Ned Deily added the comment: >It's incorrect to use DNS names when implementing platform.uname(): >on POSIX, uname() *also* does not return the DNS name. If you want >some API to return the DNS name of the computer, you need a different >function (e.g. socket.getfqdn()). Even more importantly,

[issue10097] platform.uname gives UnicodeError for non-ASCII computer names on Windows

2010-10-14 Thread Martin v . Löwis
Martin v. Löwis added the comment: > More evidence that the NetBIOS name is used: > > http://msdn.microsoft.com/en-us/library/aa368009(VS.85).aspx > http://msdn.microsoft.com/en-us/library/ms724295(v=VS.85).aspx > > One problem with this approach is that changes to the NetBIOS name > are not s

[issue10097] platform.uname gives UnicodeError for non-ASCII computer names on Windows

2010-10-14 Thread Martin v . Löwis
Martin v. Löwis added the comment: > There are two issues here: There are two issues, but not here :-) > 1. socket.gethostname() shouldn't raise an error on Windows, but >return the Unicode host name This is issue 9377, please keep that out of this issue. > Could someone please check whe

[issue10097] platform.uname gives UnicodeError for non-ASCII computer names on Windows

2010-10-14 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Marc-Andre Lemburg wrote: > 2. COMPUTERNAME returns an uppercase version of the host name (which we >could lowercase to stay b/w compatible), however I'm not sure >whether this is the same as the socket.gethostname() or the >NETBIOS name and I'm

[issue10097] platform.uname gives UnicodeError for non-ASCII computer names on Windows

2010-10-14 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Martin v. Löwis wrote: > > New submission from Martin v. Löwis : > > 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

[issue10097] platform.uname gives UnicodeError for non-ASCII computer names on Windows

2010-10-13 Thread Martin v . Löwis
New submission from Martin v. Löwis : 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