🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by john Fri, 07 Mar 1986 19:42
ditroff,troff bug
#278
Author: john
Date: Fri, 07 Mar 1986 19:42
35 lines
1481 bytes
The following bug may be found in the 'ditroff' found in the AT&T DWB.
It probably also exists in earlier version of troff/nroff.
Essentially, if you use the \b'abc...' function (bracket building),
and only supply one component for the 'bracket', such as: \b'\(sr'
ditroff does not do any horizontal motion for the symbol created.  If,
however, you do supply more than one character between the '', ditroff
does do the horizontal motion.  The fix below solves this problem.

In n9.c:

Original Code:
	if (--cnt < 0)
		return;
	else if (!cnt) {
		ch = *(j-2);
		return;
	}

Fixed Code:
	if (--cnt < 0)
		return;
	else if (!cnt) {
		ch = *(j-2) & ~ZBIT;   /* We turn off ZBIT on single chars */
		return;		      /* ZBIT means 'zero width' to *roff */
	}

John Buck
Polytechnic Inst. of NY
Route 110
Farmingdale, NY 11735
516-454-5191

ihnp4!iguana!polyof!john
decvax!mcnc!{philabs!ron1,rti-sel}!polyof!john
trixie!polyof!john
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads