Subject: bin/6785: dc doesn't give expected results
To: None <gnats-bugs@gnats.netbsd.org>
From: Simon Burge <simonb@telstra.com.au>
List: netbsd-bugs
Date: 01/11/1999 15:01:02
>Number:         6785
>Category:       bin
>Synopsis:       dc doesn't give expected results
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jan 10 20:20:01 1999
>Last-Modified:
>Originator:     Simon Burge
>Organization:
	IBM Global Services Australia
>Release:        NetBSD-current January 6, 1998
>Environment:
System: NetBSD mona 1.3I NetBSD 1.3I (MONA) #18: Wed Jan 6 16:52:31 EST 1999 simonb@mona:/NetBSD/src/sys/arch/pmax/compile/MONA pmax

>Description:
	I found a bit of dc magic in someone's .sig somewhere, and
	cut'n'pasted it to a NetBSD machine, and thought "whopdy do".
	Cut'n'pasting to an Ultrix machine reveals the correct output.
	Further research has shown that stock bc-1.04.tar.gz from a GNU
	FTP site has the problem, but bc-1.05.tar.gz doesn't.

>How-To-Repeat:
	echo '[q]sa[ln0=aln256%Pln256/snlbx]sb3135071790101768542287578439snlbxq'|dc
	The expected output is
		GET A LIFE!
	but the dc in NetBSD gives
		716984326532767370693310
	with no trailing carriage return.

>Fix:
	Import bc 1.05 to NetBSD (which includes a new, working dc)
>Audit-Trail:
>Unformatted: