Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!gatech!hao!ames!ucbcad!ucbvax!hplabs!hplabsc!daemon From: taylor@hpldat.UUCP (Dave Taylor) Newsgroups: comp.mail.elm Subject: Patch: filter suffers from tolower macro probs too Message-ID: <1870@hplabsc.HP.COM> Date: Fri, 22-May-87 17:19:44 EDT Article-I.D.: hplabsc.1870 Posted: Fri May 22 17:19:44 1987 Date-Received: Tue, 26-May-87 01:35:50 EDT Sender: daemon@hplabsc.HP.COM Reply-To: taylor@hpldat (Dave Taylor) Organization: Hewlett-Packard Laboratories, Interface Technologies Group Lines: 82 Approved: taylor@hplabs (with 'postmail') From: harvard!adelie.Adelie.COM!barry@seismo.CSS.GOV (Barry A. Burke) "filter" prints bogus status messages, and will even occaisionally core dump on a BSD system (including Ultrix). Trace back to half-successful attempt at disabling the (bad) "tolower" macro definition in hdrs/filter.h. Here's a diff to Elm/hdrs/filter.h to correct things. I'd advise not running filter on a BSD unless this patch is applied- you probably won't realize you're not getting all your mail. While I was at it, I re-instated the bell, and also eliminated the redefinition of _IOFBF. -- *** filter.h.orig Wed May 20 22:02:47 1987 --- filter.h Wed May 20 22:03:19 1987 *************** *** 7,13 #ifdef BSD # undef tolower - # define tolower(c) (isupper(c)? c = c - 'A' + 'a' : c) #endif /** define a few handy macros for later use... **/ --- 7,12 ----- #ifdef BSD # undef tolower #endif /** define a few handy macros for later use... **/ *************** *** 12,18 /** define a few handy macros for later use... **/ ! #define BEEP (audible? "" : "") #define the_same(a,b) (strncmp(a,b,strlen(b)) == 0) --- 11,17 ----- /** define a few handy macros for later use... **/ ! #define BEEP (audible? "\007" : "") #define the_same(a,b) (strncmp(a,b,strlen(b)) == 0) *************** *** 146,152 extern char _vbuf[5*BUFSIZ]; /* space for file buffering */ ! # define _IOFBF 0 /* doesn't matter - ignored */ # define setvbuf(fd,a,b,c) setbuffer(fd, _vbuf, 5*BUFSIZ) --- 145,153 ----- extern char _vbuf[5*BUFSIZ]; /* space for file buffering */ ! # ifndef _IOFBF /* fix for Ultrix-is already defined */ ! # define _IOFBF 0 /* doesn't matter - ignored */ ! # endif # define setvbuf(fd,a,b,c) setbuffer(fd, _vbuf, 5*BUFSIZ) -- LIVE: Barry A. Burke, (617) 499-6370 USPS: Adelie Corporation, 125 CambridgePark Drive Cambridge, MA 02140 UUCP: barry@adelie.Adelie.COM / ..!{harvard,ll-xn,necntc,mirror}!adelie!barry ARPA: barry@adelie.Adelie.COM (via MX) / barry%adelie@harvard.Harvard.EDU -- I think that I shall never see A billboard lovely as a tree. Perhaps, unless the billboards fall I'll never see a tree at all.