Yeah, I think the code was assuming if it's not cntrl, and not space,
then it must be print and therefore width >= 0. But that's clearly not
true, even here, where Norm's sunglasses don't have a negative width,
e.g. U+0378.
So, I'm back from vacation and trying to digest this all ... and the first
thing I ran into is that the new ctype code in test/getcwidth.c uses
__WCHAR_MAX__ ... which is not defined by MacOS X! It looks like POSIX
officially uses WCHAR_MAX. I will admit that I am always confused why
some preprocessor symbols use __ around them and some do not (I am sure
there is a reason for when to use it, it just is not obvious to me). But
since POSIX officially defines WCHAR_MAX, we should use that?
--Ken
_______________________________________________
Nmh-workers mailing list
Nmh-workers(_at_)nongnu(_dot_)org
https://lists.nongnu.org/mailman/listinfo/nmh-workers