Subject: Re: lib/34632
To: Antony Dovgal <antony@zend.com>
From: Christos Zoulas <christos@zoulas.com>
List: netbsd-bugs
Date: 09/27/2006 09:06:57
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