Subject: Re: lib/34632: isalpha() and possibly other ctype functions segfault
To: None <>
From: Antony Dovgal <>
List: netbsd-bugs
Date: 09/27/2006 01:50:32
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.