🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.bugs.usg
Article #278

ditroff,troff bug

#278
From: 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
Technical Details
Message-ID: <199@polyof.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxt!houxm!whuxl!whuxlm!akgua!gatech!seismo!cmcl2!philabs!ron1!polyof!john

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxt!houxm!whuxl!whuxlm!akgua!gatech!seismo!cmcl2!philabs!ron1!polyof!john
From: john@polyof.UUCP
Newsgroups: net.bugs.usg,net.bugs.4bsd
Subject: ditroff,troff bug
Message-ID: <199@polyof.UUCP>
Date: Fri, 7-Mar-86 14:42:15 EST
Article-I.D.: polyof.199
Posted: Fri Mar  7 14:42:15 1986
Date-Received: Tue, 11-Mar-86 01:12:29 EST
Distribution: net
Organization: Polytechnic Inst. of NY, Farmingdale
Lines: 35