At 02:00 PM 5/22/2002 -0400, Green, Paul wrote:

>> -    i = PerlIO_getc(fp);
>> +    i = PerlSIO_fseek(fp, (Off_t) 0, SEEK_CUR);

>My copy of the C Standard says that doing a fseek, fsetpos or rewind
>discards any pushed-back characters. Is that what you want to happen?


You're right of course.  I saw something about clearing the buffer and 
thought it meant moving it from the pushback buffer to the stdio buffer; it 
doesn't.  Besides, this bit of code seems to make sense to Nick I-S, so I'd 
best leave it alone :-).

Reply via email to