This is the mail archive of the
libc-hacker@sourceware.cygnus.com
mailing list for the glibc project.
Re: Why this change?
- To: hjl@lucon.org (H.J. Lu)
- Subject: Re: Why this change?
- From: Ulrich Drepper <drepper@cygnus.com>
- Date: 13 Nov 1998 18:44:38 -0800
- Cc: libc-hacker@cygnus.com (GNU C Library)
- References: <m0zeVMx-000393C@ocean.lucon.org>
- Reply-To: drepper@cygnus.com (Ulrich Drepper)
hjl@lucon.org (H.J. Lu) writes:
> Could you please tell me why this change
>
> 1998-11-13 Ulrich Drepper <drepper@cygnus.com>
>
> * stdio-common/vfscanf.c: Return EOF for invalid format
> characters.
>
> is needed? It breaks stdio-common/tstdiomisc.c. Do you have a testcase
> for the bug you tried to fix?
The problem is that some old code contains format specifiers which are
invalid today. E.g., scanf ("%D", ...) used to be the same as "%ld".
When we do not signal an error these kinds of errors stay unnoticed.
--
---------------. drepper at gnu.org ,-. 1325 Chesapeake Terrace
Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
Cygnus Solutions `--' drepper at cygnus.com `------------------------