*BSD News Article 23330


Return to BSD News archive

Xref: sserve comp.os.386bsd.bugs:1710 comp.bugs.4bsd:1999
Newsgroups: comp.os.386bsd.bugs,comp.bugs.4bsd
Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!agate!howland.reston.ans.net!math.ohio-state.edu!cs.utexas.edu!utnut!nott!cunews!revcan!micor!latour!diana!db
From: db@diana.ocunix.on.ca (Dyane Bruce)
Subject: bcd bug
Message-ID: <1993Nov4.171732.8141@diana.ocunix.on.ca>
Organization: db Software
Date: Thu, 4 Nov 1993 17:17:32 GMT
Lines: 80

  This bug is also in SUNOS 4.1 so it is in the original bsd sources.
This bug report and fix has already been sent to
'netbsd-bugs@sun-lamp.cs.berkeley.edu' 

  I realize that a bug in a game is hardly very important, but here
is the bug report and fix anyway.

  I found this one due to a sharp eyed reader of an APA (Amateur Press
Association) 'zine I am a member of. I had used 'bcd' to make a
cover for the 'zine. The bug is on my home system (SUN 3/60 running
SUN OS 4.1.1) so it has been around for a while in BSD. 'bcd'
produces the same 'punch' code for both 'Q' and 'R'.


*** bcd.c	Thu Nov  4 10:08:12 1993
--- bcd.c.org	Thu Nov  4 09:59:14 1993
***************
*** 60,76 ****
   * Steve Hayman
   * sahayman@iuvax.cs.indiana.edu
   * 1989 11 30
-  *
-  * I found an error in the table. The same error is found in 
-  * the SUNOS 4.1.1 version of bcd. It has apparently been around
-  * a long time. The error caused 'Q' and 'R' to have the same
-  * punch code. I only noticed the error due to someone pointing
-  * it out to me when the program was used to print a cover for
-  * an APA!
-  *
-  * Dyane Bruce
-  * db@diana.ocunix.on.ca
-  * Nov 4, 1993
   */
  
  #include <sys/types.h>
--- 60,65 ----
***************
*** 88,94 ****
      0x002,	 0x001,	  0x012,   0x40a,   0x80a,   0x212,   0x00a,   0x006,
      0x022,	 0x900,	  0x880,   0x840,   0x820,   0x810,   0x808,   0x804,
      0x802,	 0x801,	  0x500,   0x480,   0x440,   0x420,   0x410,   0x408,
!     0x404,	 0x402,	  0x401,   0x280,   0x240,   0x220,   0x210,   0x208,
      0x204,	 0x202,	  0x201,   0x082,   0x822,   0x600,   0x282,   0x30f,
      0x900,	 0x880,	  0x840,   0x820,   0x810,   0x808,   0x804,   0x802,
      0x801,	 0x500,	  0x480,   0x440,   0x420,   0x410,   0x408,   0x404,
--- 77,83 ----
      0x002,	 0x001,	  0x012,   0x40a,   0x80a,   0x212,   0x00a,   0x006,
      0x022,	 0x900,	  0x880,   0x840,   0x820,   0x810,   0x808,   0x804,
      0x802,	 0x801,	  0x500,   0x480,   0x440,   0x420,   0x410,   0x408,
!     0x404,	 0x402,	  0x402,   0x280,   0x240,   0x220,   0x210,   0x208,
      0x204,	 0x202,	  0x201,   0x082,   0x822,   0x600,   0x282,   0x30f,
      0x900,	 0x880,	  0x840,   0x820,   0x810,   0x808,   0x804,   0x802,
      0x801,	 0x500,	  0x480,   0x440,   0x420,   0x410,   0x408,   0x404,
***************
*** 104,110 ****
      0x001,	 0x012,	  0x40a,   0x80a,   0x212,   0x00a,   0x006,   0x022,
      0x900,	 0x880,	  0x840,   0x820,   0x810,   0x808,   0x804,   0x802,
      0x801,	 0x500,	  0x480,   0x440,   0x420,   0x410,   0x408,   0x404,
!     0x402,	 0x401,	  0x280,   0x240,   0x220,   0x210,   0x208,   0x204,
      0x202,	 0x201,	  0x082,   0x806,   0x822,   0x600,   0x282,   0x30f,
      0x900,	 0x880,	  0x840,   0x820,   0x810,   0x808,   0x804,   0x802,
      0x801,	 0x500,	  0x480,   0x440,   0x420,   0x410,   0x408,   0x404,
--- 93,99 ----
      0x001,	 0x012,	  0x40a,   0x80a,   0x212,   0x00a,   0x006,   0x022,
      0x900,	 0x880,	  0x840,   0x820,   0x810,   0x808,   0x804,   0x802,
      0x801,	 0x500,	  0x480,   0x440,   0x420,   0x410,   0x408,   0x404,
!     0x402,	 0x402,	  0x280,   0x240,   0x220,   0x210,   0x208,   0x204,
      0x202,	 0x201,	  0x082,   0x806,   0x822,   0x600,   0x282,   0x30f,
      0x900,	 0x880,	  0x840,   0x820,   0x810,   0x808,   0x804,   0x802,
      0x801,	 0x500,	  0x480,   0x440,   0x420,   0x410,   0x408,   0x404,

-- 
Dyane Bruce				db@diana.ocunix.on.ca
29 Vanson Ave. Nepean On, K2E 6A9	Am I the only one who has trouble
613-225-9920				thinking up witty sayings for here?

-- 
Dyane Bruce				db@diana.ocunix.on.ca
29 Vanson Ave. Nepean On, K2E 6A9	Am I the only one who has trouble
613-225-9920				thinking up witty sayings for here?