From owner-freebsd-ports Thu Nov 15 13: 0:17 2001 Delivered-To: freebsd-ports@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 232DA37B41B for ; Thu, 15 Nov 2001 13:00:01 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id fAFL01x62992; Thu, 15 Nov 2001 13:00:01 -0800 (PST) (envelope-from gnats) Received: from sep.oldach.net (sep.oldach.net [194.180.25.6]) by hub.freebsd.org (Postfix) with ESMTP id 33AF437B405 for ; Thu, 15 Nov 2001 12:54:48 -0800 (PST) Received: (from hmo@localhost) by sep.oldach.net (8.11.6/8.11.6/hmo27jul01) id fAFKsdj36427; Thu, 15 Nov 2001 21:54:39 +0100 (CET) (envelope-from hmo) Message-Id: <200111152054.fAFKsdj36427@sep.oldach.net> Date: Thu, 15 Nov 2001 21:54:39 +0100 (CET) From: Helge Oldach Reply-To: Helge Oldach To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: ports/32017: ports/math/sc bug fixes Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 32017 >Category: ports >Synopsis: ports/math/sc bug fixes >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Nov 15 13:00:00 PST 2001 >Closed-Date: >Last-Modified: >Originator: Helge Oldach >Release: FreeBSD 4.4-STABLE i386 >Organization: >Environment: System: FreeBSD sep.oldach.net 4.4-STABLE FreeBSD 4.4-STABLE #4: Sat Nov 3 16:16:29 CET 2001 toor@sep.oldach.net:/usr/obj/usr/src/sys/GENERIC i386 sc-6.21 has several minor bugs that should be fixed. 1) Backup files should be produced according to the wide-spread "tilde suffix" convention. sc will also prepend a hash character which will make the backup files go out of common directory sort order. 2) A value such as 40 will be displayed wrongly if displayed with a "0.00 EUR" format (i.e. more than one or two characters alpha text after the number format). 3) 8-bit characters (according to usual locale conventions) should be allowed. >Description: >How-To-Repeat: >Fix: --- cmds.c.orig Mon May 11 20:43:34 1992 +++ cmds.c Wed Feb 16 21:55:06 2000 @@ -1800,14 +1800,14 @@ int infd, outfd; int count; - /* tpath will be the [path/]file ---> [path/]#file~ */ + /* tpath will be the [path/]file ---> [path/]file~ */ strcpy(tpath, path); if ((tpp = strrchr(tpath, '/')) == NULL) tpp = tpath; else tpp++; strcpy(fname, tpp); - (void) sprintf(tpp, "#%s~", fname); + (void) sprintf(tpp, "%s~", fname); if (stat(path, &statbuf) == 0) { --- format.c.orig Mon May 11 20:43:34 1992 +++ format.c Sat Dec 9 21:24:41 2000 @@ -263,7 +263,6 @@ break; } } - zero_pad = strlen(decimal) - zero_pad; } (void) sprintf(prtfmt, "%%.%dlf", width); (void) sprintf(mantissa, prtfmt, val); --- lex.c.orig Sat Dec 9 22:09:40 2000 +++ lex.c Sat Dec 9 22:06:43 2000 @@ -493,7 +493,7 @@ if (dumpindex && *dumpindex) return (*dumpindex++); - c = toascii(getchar()); + c = getchar(); biggest = 0; almost = 0; >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message