Subject: bin/6785: dc doesn't give expected results
To: None <>
From: Simon Burge <>
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
>Originator:     Simon Burge
	IBM Global Services Australia
>Release:        NetBSD-current January 6, 1998
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

	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.

	echo '[q]sa[ln0=aln256%Pln256/snlbx]sb3135071790101768542287578439snlbxq'|dc
	The expected output is
	but the dc in NetBSD gives
	with no trailing carriage return.

	Import bc 1.05 to NetBSD (which includes a new, working dc)