Subject: bin/32028: hack shows characters "aeoiu".
To: None <gnats-admin@netbsd.org, netbsd-bugs@netbsd.org>
From: None <llamsgorf@hotmail.co.jp>
List: netbsd-bugs
Date: 11/09/2005 16:17:00
>Number:         32028
>Category:       bin
>Synopsis:       hack shows characters "aeoiu".
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Nov 09 16:17:00 +0000 2005
>Originator:     llamsgorf
>Release:        NetBSD 2.1.0_STABLE
>Organization:
>Environment:
NetBSD 2.1.0_STABLE Alpha
>Description:
If you play /usr/games/hack on Alpha, it shows undesirable characters "aeoiu" on display.

My friend says:

There is no BC entry in termcap of NetBSD/Alpha.
Without BC entry in termcap, BC = &BC_char; in ./src/games/hack/hack.termcap.c.

% nm /usr/games/hack | sort
....
000000012005ac74 G shtypes
000000012005ac7c g BC_char
000000012005ac7d G vowels
000000012005ac83 A __bss_start
000000012005ac83 A _edata
...

So, "aeoiu" by vowels appears on display.

>How-To-Repeat:
$ hack
>Fix:
My friend suggests:

1. change hack.termcap.c

$ diff hack.termcap.c hack.termcap.c_org 
82a83
> static char     BC_char = '\b'; /* if bc is not set use this */
104c105
<               BC = "\b";
---
>               BC = &BC_char;

or

2. add BC entry to termcap.