bug-groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #61423] [libgroff] allow paths in "name" directive of font descript


From: G. Branden Robinson
Subject: [bug #61423] [libgroff] allow paths in "name" directive of font description file, restoring historical groff behavior
Date: Tue, 28 Dec 2021 01:10:37 -0500 (EST)
User-agent: Lynx/2.8.9rel.1 libwww-FM/2.14 SSL-MM/1.4.1 GNUTLS/3.6.7

Follow-up Comment #13, bug #61423 (project groff):

[comment #12 comment #12:]
> [comment #11 comment #11:]
> > if we do, it suggests another bug report needs to be filed
> > against whatever tool is putting full paths there.
> 
> The (good? bad?) news is that this tool is part of groff: afmtodit.
> 
> All my font description files produced by install-font.sh have a comment at
the top saying "This file has been generated with GNU afmtodit" (followed by
version numbers ranging from 1.20.1 to 1.22.3) and a "name" directive
containing only the basename.  So install-font.sh is calling afmtodit in a way
that does not put a full path there.
> 
> The problematic font description file also has the comment crediting
afmtodit (specifically version 1.22.2), but this file I generated using a
script Tadziu posted (http://lists.gnu.org/r/groff/2013-11/msg00042.html).
> 
> Thus, afmtodit does not routinely include paths in the "name" directive, but
can be coaxed into doing so.  So if groff now disallows a path here, afmtodit
ought to at least squawk if the user asks for one, if not omit it entirely.
> 
> Whether this warrants a separate bug report will depend, I think, on what
decisions are made of the choices offered in comment #10 and comment #9.

Hi, Dave!

Would you agree that the present behavior of groff in Git
conforms to your option B?

When I give it the reproducer from bug #61424, I get the
following output.


$ ./build/test-groff -Tutf8 EXPERIMENTS/hello-dave.roff
troff:EXPERIMENTS/hello-dave.roff:4: error: cannot load font
'../../../../../../../../../../../home/branden/bogusfont' for mounting
troff:EXPERIMENTS/hello-dave.roff:5: warning: no font mounted at position 5
WORD


No one has raised Cain about this (or even uttered a peep in
protest), so I reckon I will leave it until it draws complaint.


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?61423>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]