Subject: Re: lib/34632
To: None <lib-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: Christos Zoulas <christos@zoulas.com>
List: netbsd-bugs
Date: 09/27/2006 13:10:03
The following reply was made to PR lib/34632; it has been noted by GNATS.

From: christos@zoulas.com (Christos Zoulas)
To: Antony Dovgal <antony@zend.com>,
	Quentin Garnier <cube@cubidou.net>
Cc: gnats-bugs@NetBSD.org, lib-bug-people@netbsd.org,
	gnats-admin@netbsd.org, netbsd-bugs@netbsd.org, tony2001@php.net
Subject: Re: lib/34632
Date: Wed, 27 Sep 2006 09:06:57 -0400

 On Sep 27, 12:15pm, antony@zend.com (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>
 
 int
 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.
 
 christos