This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: explicitly provide a buffer in PyFile_SetBufSize()
Type: Stage:
Components: Interpreter Core Versions: Python 2.3
process
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: loewis Nosy List: gaul, loewis
Priority: normal Keywords: patch

Created on 2003-08-13 18:49 by gaul, last changed 2022-04-10 16:10 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
setbufsize.diff gaul, 2003-08-13 18:49 explicitly provide a buffer in PyFile_SetBufSize()
Messages (2)
msg44447 - (view) Author: Andrew Gaul (gaul) Date: 2003-08-13 18:49
Fixes bug 603724.  Explicitly provide a buffer for
setvbuf() and setbuf() in PyFile_SetBufSize().  The C99
standard allows (and glibc 2.2.5 implements) setvbuf()
to ignore the size argument when the buffer argument is
NULL.

Tested against Python 2.3 on Red Hat 7.3 with glibc
2.2.5-43.
msg44448 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2003-09-04 19:04
Logged In: YES 
user_id=21627

Thanks for the patch. Committed as

fileobject.h 2.33
fileobject.c 2.181
fileobject.h 2.32.8.1
NEWS 1.831.4.33
fileobject.c 2.179.8.1
History
Date User Action Args
2022-04-10 16:10:38adminsetgithub: 39059
2003-08-13 18:49:31gaulcreate