Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Nov 2001 21:54:39 +0100 (CET)
From:      Helge Oldach <send-pr@oldach.net>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/32017: ports/math/sc bug fixes
Message-ID:  <200111152054.fAFKsdj36427@sep.oldach.net>

next in thread | raw e-mail | index | archive | help

>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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200111152054.fAFKsdj36427>