[issue12545] os.lseek() and FileIO.seek() does not support offset larger than 2^63-1

2020-11-17 Thread Charles-François Natali
Change by Charles-François Natali : -- nosy: -neologix ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12545] os.lseek() and FileIO.seek() does not support offset larger than 2^63-1

2020-11-17 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.10, Python 3.9 -Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue12545] os.lseek() and FileIO.seek() does not support offset larger than 2^63-1

2013-06-06 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: Removed file: http://bugs.python.org/file22721/unnamed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12545 ___

[issue12545] os.lseek() and FileIO.seek() does not support offset larger than 2^63-1

2013-06-06 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- title: Incorrect handling of return codes in the posix_lseek function in posixmodule.c - os.lseek() and FileIO.seek() does not support offset larger than 2^63-1 ___ Python tracker

[issue12545] os.lseek() and FileIO.seek() does not support offset larger than 2^63-1

2013-06-06 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: Removed file: http://bugs.python.org/file22641/unnamed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12545 ___

[issue12545] os.lseek() and FileIO.seek() does not support offset larger than 2^63-1

2013-06-06 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: Removed file: http://bugs.python.org/file22645/unnamed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12545 ___

[issue12545] os.lseek() and FileIO.seek() does not support offset larger than 2^63-1

2013-06-06 Thread STINNER Victor
STINNER Victor added the comment: lseek_negative.diff is not correct: 0x8000 is a valid offset for a /proc/pid/mem file. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12545

[issue12545] os.lseek() and FileIO.seek() does not support offset larger than 2^63-1

2013-06-06 Thread STINNER Victor
STINNER Victor added the comment: lseek_unsigned_test.py: script to test manually the patch on Linux. It may work on Solaris, I didn't try. -- Added file: http://bugs.python.org/file30490/lseek_unsigned_test.py ___ Python tracker

[issue12545] os.lseek() and FileIO.seek() does not support offset larger than 2^63-1

2013-06-06 Thread STINNER Victor
STINNER Victor added the comment: The patch is not complete: _iomodule.h defines PyLong_AsOff_t() and PyLong_FromOff_t(), but these functions don't support unsigned off_t (larger than 2^63-1). #if defined(MS_WIN64) || defined(MS_WINDOWS) /* Windows uses long long for offsets */ typedef