This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Title: socket.gethostname() fail
Type: behavior Stage: resolved
Components: Library (Lib) Versions: Python 3.1
Status: closed Resolution: duplicate
Dependencies: Superseder: socket, PEP 383: Mishandling of non-ASCII bytes in host/domain names
View: 9377
Assigned To: Nosy List: EcmaXp
Priority: normal Keywords:

Created on 2010-10-28 22:12 by EcmaXp, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (2)
msg119818 - (view) Author: EcmaXp (EcmaXp) Date: 2010-10-28 22:12
Python 3.1.2 (r312:79149, Mar 21 2010, 00:41:52) [MSC v.1500 32 bit (Intel)] on
Type “help”, “copyright”, “credits” or “license” for more information.
>>> import socket
>>> socket.gethostname()
Traceback (most recent call last):
  File “<stdin>”, line 1, in <module>
UnicodeDecodeError: ‘utf8’ codec can’t decode bytes in position 0-1: invalid data

socket.gethostname() fail when system name is korean on Window Vista

msg119820 - (view) Author: EcmaXp (EcmaXp) Date: 2010-10-28 22:17
Date User Action Args
2022-04-11 14:57:08adminsetgithub: 54432
2010-10-29 01:50:02r.david.murraysettype: crash -> behavior
superseder: socket, PEP 383: Mishandling of non-ASCII bytes in host/domain names
resolution: rejected -> duplicate
stage: resolved
2010-10-28 22:17:55EcmaXpsetstatus: open -> closed
resolution: rejected
messages: + msg119820
2010-10-28 22:12:54EcmaXpcreate