From hmo@sep.oldach.net  Thu Nov 15 12:54:50 2001
Return-Path: <hmo@sep.oldach.net>
Received: from sep.oldach.net (sep.oldach.net [194.180.25.6])
	by hub.freebsd.org (Postfix) with ESMTP id 33AF437B405
	for <FreeBSD-gnats-submit@freebsd.org>; 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 <send-pr@oldach.net>
Reply-To: Helge Oldach <send-pr@oldach.net>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: ports/math/sc bug fixes
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         32017
>Category:       ports
>Synopsis:       ports/math/sc bug fixes
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Nov 15 13:00:00 PST 2001
>Closed-Date:    Sun Dec 2 14:16:45 PST 2001
>Last-Modified:  Sun Dec 02 14:18:23 PST 2001
>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:
State-Changed-From-To: open->closed 
State-Changed-By: steve 
State-Changed-When: Sun Dec 2 14:16:45 PST 2001 
State-Changed-Why:  
Committed, thanks! 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=32017 
>Unformatted:
