[issue1520818] fcntl.ioctl fails to copy back exactly-1024 buffer
G2P
report at bugs.python.org
Sat Oct 6 11:46:33 CEST 2012
G2P added the comment:
The bug still exists in Python 2.6 (2.6.7-4ubuntu2). Python 2.7 (2.7.3-5ubuntu4) works correctly. I don't have Python 2.5 on hand to check.
Here is a very simple test case:
import array, fcntl
buf = array.array('B', [0]*1024)
fcntl.ioctl(0, termios.TIOCGPGRP, buf, 1)
assert any(by != 0 for by in buf)
----------
nosy: +G2P
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue1520818>
_______________________________________
More information about the Python-bugs-list
mailing list