Subject: Re: lib/34632: isalpha() and possibly other ctype functions segfault
To: None <lib-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: Antony Dovgal <antony@zend.com>
List: netbsd-bugs
Date: 09/27/2006 00:40:02
The following reply was made to PR lib/34632; it has been noted by GNATS.

From: Antony Dovgal <antony@zend.com>
To: gnats-bugs@NetBSD.org
Cc: lib-bug-people@netbsd.org, gnats-admin@netbsd.org,
	netbsd-bugs@netbsd.org, tony2001@php.net
Subject: Re: lib/34632: isalpha() and possibly other ctype functions segfault
Date: Wed, 27 Sep 2006 01:50:32 +0400

 On 27.09.2006 01:10, Christos Zoulas wrote:
 >  This is not a bug. Undefined includes "segmentation fault". This is why
 >  we cast to (unsigned char) in our sources.
 
 Ok, but I'm afraid you'd need to add this to the docs and inform such projects as: SQLite, PCRElib, libxml2 and many more which do not cast it to (unsigned char) either.
 Currently I can see similar "expected" behaviour only on Solaris, which also segfaults in this case.
 Other systems (AIX, MacOS, various Linuxes) have chosen a user-friendly way and return 0.