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 "", line 1, in
UnicodeDecodeError: 'ascii' codec can
Dominik Richter added the comment:
@dmi.baranov: You're right, according to:
http://tools.ietf.org/html/rfc952
::= *["."]
::= [*[]]
http://tools.ietf.org/html/rfc1178
Don't use non-alphanumeric characters in a name.
If you use posix definition of alphanumeric, tha
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 explicitly (or at
least i wasn't able to find it; thus referencing POSIX).
Regarding Arch Linux's hostname: It is
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
<http://bugs.python.or
Dominik Richter added the comment:
/off: nevermind, wasn't directed at me
--
___
Python tracker
<http://bugs.python.org/issue18109>
___
___
Python-bugs-list m
Dominik Richter added the comment:
Thank you all for your help, works great!
@Victor: fully agree on the ascii hostname ;)
--
___
Python tracker
<http://bugs.python.org/issue18