Message294156
I know nothing about TUN but you may simply be hitting this code path:
https://github.com/spotify/linux/blob/master/drivers/net/tun.c#L601-L614
Since:
>>> ('e'.encode()[0] & 0xf0) in (0x40, 0x60)
True
>>> ('é'.encode()[0] & 0xf0) in (0x40, 0x60)
False
writing 'é'.encode() will hit the EINVAL-returning path. The bottom line is that TUN devices don't seem to support free-form data, but expect a certain format. |
|
Date |
User |
Action |
Args |
2017-05-22 15:19:59 | pitrou | set | recipients:
+ pitrou, neologix, Rémy Léone |
2017-05-22 15:19:59 | pitrou | set | messageid: <1495466399.58.0.528977376744.issue30430@psf.upfronthosting.co.za> |
2017-05-22 15:19:59 | pitrou | link | issue30430 messages |
2017-05-22 15:19:59 | pitrou | create | |
|