Subject: Re: isspace(char) can't be used with -Wall -Werror
To: None <current-users@netbsd.org>
From: Magnus Henoch <mange@freemail.hu>
List: current-users
Date: 03/31/2006 01:00:53
christos@astron.com (Christos Zoulas) writes:

> It is a feature. Linphone should be fixed to read isspace((unsigned char)d).

Ah... now I see.  If (unsigned char)'X' > 127, then (int)(signed
char)'X' != (int)(unsigned char)'X'.  That didn't appear to me
before.  Thanks for the enlightenment!

In defense of the Linphone developers, their code wasn't as silly as
mine: a function receives a char*, and examines its input.  I'll
report this to them.

Magnus