Subject: Re: lib/34632
To: Antony Dovgal <>
From: Christos Zoulas <>
List: netbsd-bugs
Date: 09/27/2006 09:06:57
On Sep 27, 12:15pm, (Antony Dovgal) wrote:
-- Subject: Re: lib/34632

| On 27.09.2006 11:37, Quentin Garnier wrote:
| > I am sorry that as a user you have to bear with the poor habits of bad
| > programmers, but in NetBSD we usually choose to help people write
| > portable code.
| Oh, I didn't know that a missing if(), which leads to different behaviour comparing to other OSes, means more portability. Tell me more about it. 
| Does it also add more stability for you? Or consistency with other systems? Wow, what a nonsense.

Why don't you compile:

#include <ctype.h>

main(int argc, char *argv[])
	return isalnum(-233344455);

This core-dumps reliably on my linux sle9-p3 amd64 box.

Just because you used small positive values that happen to hit mapped
memory does not prove that it works in  all the cases.