[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Nmh-workers] nmh-1.7-RC1: scan with complex subjects dumps core

From: Ken Hornstein
Subject: Re: [Nmh-workers] nmh-1.7-RC1: scan with complex subjects dumps core
Date: Tue, 15 Aug 2017 13:35:41 -0400

>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?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]