[issue18109] os.uname() crashes if hostname contains non-ascii characters

2013-06-03 Thread Dominik Richter
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

[issue18109] os.uname() crashes if hostname contains non-ascii characters

2013-06-01 Thread Dominik Richter
Dominik Richter added the comment: /off: nevermind, wasn't directed at me -- ___ Python tracker <http://bugs.python.org/issue18109> ___ ___ Python-bugs-list m

[issue18109] os.uname() crashes if hostname contains non-ascii characters

2013-06-01 Thread Dominik Richter
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

[issue18109] os.uname() crashes if hostname contains non-ascii characters

2013-05-31 Thread Dominik Richter
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

[issue18109] os.uname() crashes if hostname contains non-ascii characters

2013-05-31 Thread Dominik Richter
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

[issue18109] os.uname() crashes if hostname contains non-ascii characters

2013-05-31 Thread Dominik Richter
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&#x