Dominik Richter added the comment:
Thank you all for your help, works great!
@Victor: fully agree on the ascii hostname ;)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18109
Dominik Richter added the comment:
@neologix: (with current hostname showing at the left of my prompt)
none:~ # echo hât /proc/sys/kernel/hostname
hât:~ # hostname
hât
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org
Dominik Richter added the comment:
/off: nevermind, wasn't directed at me
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18109
___
___
Python
New submission from Dominik Richter:
To reproduce (tested on Arch Linux, python 3.3.2):
sudo hostname hât
python -c import os; os.uname()
produces:
Traceback (most recent call last):
File string, line 1, in module
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3
Dominik Richter added the comment:
@dmi.baranov: You're right, according to:
http://tools.ietf.org/html/rfc952
hname ::= name*[.name]
name ::= let[*[let-or-digit-or-hyphen]let-or-digit]
http://tools.ietf.org/html/rfc1178
Don't use non-alphanumeric characters in a name.
If you use posix
Dominik Richter added the comment:
@haypo: You're right, RFC1178 is only a recommendation. RFC952 however is
mandatory, although it doesn't seem to define let-or-digit explicitly (or at
least i wasn't able to find it; thus referencing POSIX).
Regarding Arch Linux's hostname: It is part