From owner-freebsd-ports Fri Nov 22 18:30:07 1996 Return-Path: owner-ports Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id SAA04523 for ports-outgoing; Fri, 22 Nov 1996 18:30:07 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id SAA04515; Fri, 22 Nov 1996 18:30:04 -0800 (PST) Resent-Date: Fri, 22 Nov 1996 18:30:04 -0800 (PST) Resent-Message-Id: <199611230230.SAA04515@freefall.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-ports Resent-Reply-To: FreeBSD-gnats@freefall.FreeBSD.org, marquard@Zilker.NET Received: from localhost.my.domain (ivydp12.zilker.net [206.225.46.12]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id SAA03407 for ; Fri, 22 Nov 1996 18:14:53 -0800 (PST) Received: (from marquard@localhost) by localhost.my.domain (8.7.5/8.7.3) id UAA16464; Fri, 22 Nov 1996 20:12:14 -0600 (CST) Message-Id: <199611230212.UAA16464@localhost.my.domain> Date: Fri, 22 Nov 1996 20:12:14 -0600 (CST) From: Dave Marquardt Reply-To: marquard@Zilker.NET To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: ports/2088: MH `comp -nowhatnowproc' creates the wrong draft file Sender: owner-ports@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >Number: 2088 >Category: ports >Synopsis: MH `comp -nowhatnowproc' creates the wrong draft files >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Nov 22 18:30:02 PST 1996 >Last-Modified: >Originator: Dave Marquardt >Organization: None >Release: FreeBSD 2.1.5-RELEASE >Environment: Packard Bell Pentium 75 MHz running FreeBSD 2.1.5. >Description: When running `exmh', the command `comp -nowhatnowproc -draftfolder +drafts' treats files whose name looks like the regular expression [0-9]+~ (all digits followed by a tilde) (GNU Emacs "backup" files) as an existing draft message (normally files whose names match the regular expression [0-9]+). >How-To-Repeat: Run `comp -draftfolder +drafts -editor emacs', edit the draft, save, and send the draft. Run again and notice that rather than getting draft 1, you have draft 2. This is unlike past MH behavior and uses extra files. >Fix: There are two choices for fixing this. One is to change the configuration file conf/FreeBSD to not specify LOCALE (doesn't seem acceptable). The other is to fix the code in the #ifdef LOCALE section of m_atoi() to more closely follow the code inside the #else area. Here's a context diff: *** m_atoi.c 1996/11/23 01:14:55 1.1 --- m_atoi.c 1996/11/23 01:16:23 *************** *** 19,24 **** --- 19,27 ---- i *= 10; i += *cp++ - '0'; } + if (*cp) { /* non-digit ended string -- return 0. */ + return 0; + } #else while (*cp) { if (*cp < '0' || *cp > '9') >Audit-Trail: >Unformatted: