🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.groff.bug
Article #49

ms: Macros with the same name as fonts break .B

#49
From: Gregory N. Bond
Date: Wed, 02 Sep 1992 03:09
74 lines
2694 bytes
			   Groff Bug Report

GROFF VERSION:
1.05

MACHINE:
Solbourne 5/601 (moral equivalent to a Sun 4/360)

OS:
OS/MP 4.1A.1, equivalent to SunOs 4.1.1

COMPILER:
gcc 2.2.2

INPUT FILES: 
(see attached shar file)

COMMAND LINE:
groff -TX100 -ms t2.ms
(same problem for -Tps etc)

DESCRIPTION OF INCORRECT BEHAVIOUR:
Defining a macro with the same name as a font (not an unreasonable
thing to do to allow customisation of documents), the groff ms macros
break the .B request.  A line like ".B text" ignores the text and
turns on bold mode.  Doesn't happen if the macro is called something
else, doesn't matter if the macro is used or not.  Doesn't happen in
the system troff, nor when using the system ms macros (i.e. 
	groff -M /usr/lib/tmac/ -TX100 -ms t2.ms
works as expected.)

Macros named .R are OK; ones named .CW or .I fail.  (I haven't checked
other font names.)

This was discovered in the man.ms file from Tom Christiansen's perl
man package.

SUGGESTED FIX [optional]:
(none)

----- cut here
#! /bin/sh
# This is a shell archive.  Remove anything before this line, then unpack
# it by saving it into a file and typing "sh file".  To overwrite existing
# files, type "sh file -c".  You can also feed this as standard input via
# unshar, or by typing "sh <file", e.g..  If this archive is complete, you
# will see the following message at the end:
#		"End of shell archive."
# Contents:  t2.ms
# Wrapped by gnb@leo on Wed Sep  2 12:37:05 1992
PATH=/bin:/usr/bin:/usr/ucb ; export PATH
if test -f 't2.ms' -a "${1}" != "-c" ; then 
  echo shar: Will not clobber existing file \"'t2.ms'\"
else
echo shar: Extracting \"'t2.ms'\" \(96 characters\)
sed "s/^X//" >'t2.ms' <<'END_OF_FILE'
X.de CW
X..
X.PP
XHello.  This line contains some
X.B bold
Xcharacters that don't do what you expect.
END_OF_FILE
if test 96 -ne `wc -c <'t2.ms'`; then
    echo shar: \"'t2.ms'\" unpacked with wrong size!
fi
# end of 't2.ms'
fi
echo shar: End of shell archive.
exit 0
--
Gregory Bond <gnb@bby.com.au> Burdett Buckeridge & Young Ltd Melbourne Australia
``USL has never sold long distance.  You're going after the wrong men in black 
  hats.  (Or, in the case of Plan 9, black space suits)'' - Tom Limoncelli
Technical Details
Message-ID: <1992Sep2.030916.18683@bby.com.au>
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!bby.COM.AU!gnb

Show Full Headers
Complete Article Headers
Newsgroups: gnu.groff.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!bby.COM.AU!gnb
From: gnb@bby.COM.AU (Gregory N. Bond)
Subject: ms: Macros with the same name as fonts break .B
Message-ID: <1992Sep2.030916.18683@bby.com.au>
Sender: gnulists@ai.mit.edu
Organization: Burdett, Buckeridge & Young, Melbourne, Australia
Distribution: gnu
Date: Wed, 2 Sep 1992 03:09:16 GMT
Approved: bug-groff@prep.ai.mit.edu
Lines: 76