Author haypo
Recipients Finkregh, Rebecca, ajaksu2, falsetru, georg.brandl, haypo, nvetoshkin, pitrou, schmir
Date 2011-03-18.09:58:15
SpamBayes Score 0.00219115
Marked as misclassified No
Message-id <1300442296.19.0.214732274226.issue1195@psf.upfronthosting.co.za>
In-reply-to
Content
Instead of always calling clearerr(), we can only call it on EOF:

diff -r 88fe1ac48460 Parser/myreadline.c
--- a/Parser/myreadline.c       Mon Mar 07 08:31:52 2011 +0100
+++ b/Parser/myreadline.c       Fri Mar 18 10:57:23 2011 +0100
@@ -72,6 +72,7 @@
     }
 #endif /* MS_WINDOWS */
     if (feof(fp)) {
+        clearerr(fp);
         return -1; /* EOF */
     }
 #ifdef EINTR

This patch works around this issue.
History
Date User Action Args
2011-03-18 09:58:16hayposetrecipients: + haypo, georg.brandl, pitrou, falsetru, ajaksu2, schmir, Rebecca, nvetoshkin, Finkregh
2011-03-18 09:58:16hayposetmessageid: <1300442296.19.0.214732274226.issue1195@psf.upfronthosting.co.za>
2011-03-18 09:58:15haypolinkissue1195 messages
2011-03-18 09:58:15haypocreate