Subject: bin/32028: hack shows characters "aeoiu".
To: None <,>
From: None <>
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
NetBSD 2.1.0_STABLE Alpha
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.

$ hack
My friend suggests:

1. change hack.termcap.c

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


2. add BC entry to termcap.