Subject: Re: lib/19638: isalpha (3) bug
To: Mike Cheponis <mac@Wireless.Com>
From: Jason R Thorpe <thorpej@wasabisystems.com>
List: netbsd-bugs
Date: 01/03/2003 16:57:31
On Fri, Jan 03, 2003 at 04:56:31PM -0800, Mike Cheponis wrote:
> It's less robust and not what FreeBSD and BSDI does.
It is not less robust, since it would be perfectly legal for
isalpha(3) to call abort(3), or to cause your computer to
play the Loony Toons theme song on your speakers if you were
to pass isalpha(3) invalid arguments.
If you want your program to be robust, then write it that way. Do
not make assumptions about what the system library will or will not
do when it crosses into the realm of "undefined behavior".
--
-- Jason R. Thorpe <thorpej@wasabisystems.com>