Xref: utzoo comp.bugs.4bsd:1485 comp.text:5855 Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!uunet!pcrat!rick From: rick@pcrat.uucp (Rick Richardson) Newsgroups: comp.bugs.4bsd,comp.text Subject: Re: C/A/T troff bug with -mm macros (4.3BSD) Message-ID: <1989Dec16.133059.6190@pcrat.uucp> Date: 16 Dec 89 13:30:59 GMT References: <927@hsi86.hsi.UUCP> Sender: Reply-To: rick@pcrat.UUCP (Rick Richardson) Organization: PC Research, Inc., Tinton Falls, NJ Lines: 25 In article <927@hsi86.hsi.UUCP> stevens@hsi.UUCP (Richard Stevens) writes: >I have found a bug with the old C/A/T version of troff that's >shipped with 4.3BSD. The bug shows up with the -mm macro > MM page at start = 0 > > - 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001 - I believe this is because the MM macros use the \g (return register format) escape sequence, which does not exist in C/A/T troff. There are several places in the macros that you'll have to fix. Sorry, I don't have the fixes around here. What you need to do is find all the number registers whose format is referenced with \g (backslash g). Then, every place that those number registers have their format changed with ".af" you will need to remember the format in a string register that isn't used (.ds xx format, one string reg per number reg). Then, you need to replace the \g's with references to your string registers. -Rick -- Rick Richardson | Looking for FAX software for UNIX/386 ?????? mention PC Research,Inc.| WE'RE SHIPPING your uunet!pcrat!rick| Ask about FaxiX - UNIX Facsimile System (tm) FAX # (201) 389-8963 | Or JetRoff - troff postprocessor for the HP {Laser,Desk}Jet