STINNER Victor <[email protected]> added the comment:
Example with a non-ASCII interface name:
$ sudo tunctl -u haypo -t unicodeé
Set 'unicodeé' persistent and owned by uid 1000
$ sudo ifconfig -a|grep unicode|hexdump -C
00000000 75 6e 69 63 6f 64 65 c3 a9 20 4c 69 6e 6b 20 65 |unicode.. Link e|
00000010 6e 63 61 70 3a 45 74 68 65 72 6e 65 74 20 20 48 |ncap:Ethernet H|
00000020 57 61 64 64 72 20 64 36 3a 30 38 3a 31 63 3a 65 |Waddr d6:08:1c:e|
00000030 30 3a 33 33 3a 30 36 20 20 0a |0:33:06 .|
0000003a
So in my setup (UTF-8 locale encoding), U+00E9 is encoded as {0xc3, 0xa9}
(UTF-8).
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue1746656>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com