This is the mail archive of the
libc-hacker@sourceware.cygnus.com
mailing list for the glibc project.
Re: A libio patch
- To: hjl@lucon.org (H.J. Lu)
- Subject: Re: A libio patch
- From: Ulrich Drepper <drepper@cygnus.com>
- Date: 31 Oct 1998 11:40:39 -0800
- Cc: libc-hacker@cygnus.com (GNU C Library)
- References: <m0zYjvw-0000V4C@sea.lucon.org>
- Reply-To: drepper@cygnus.com (Ulrich Drepper)
hjl@lucon.org (H.J. Lu) writes:
> Wed Oct 28 19:29:29 1998 H.J. Lu <hjl@gnu.org>
>
> * libio/iogetline.c ((_IO_getline_info): Don't read again if
> there is nothing to read.
This cannot be right. If the input stream is line buffered the read
will return a short input and and if we have a deliminiter != '\n' we
return a wrong value.
Please show me an example program showing the problem.
--
---------------. drepper at gnu.org ,-. 1325 Chesapeake Terrace
Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
Cygnus Solutions `--' drepper at cygnus.com `------------------------