gnu/86226: [update request] groff util pfbtops fails to count properly.

jpd at dsb.tudelft.nl jpd at dsb.tudelft.nl
Fri Sep 16 12:40:21 PDT 2005


>Number:         86226
>Category:       gnu
>Synopsis:       [update request] groff util pfbtops fails to count properly.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Sep 16 19:40:19 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     
>Release:        FreeBSD 5.4-RELEASE-p4 i386
>Organization:
Unorganized
>Environment:
System: FreeBSD prozac.local 5.4-RELEASE-p4 FreeBSD 5.4-RELEASE-p4 #0: Mon Aug 8 11:02:29 CEST 2005 root at prozac.local:/usr/src/sys/i386/compile/PROZACII i386


>Description:

The pfbtops tool included with gnu roff 1.19 successfully converts some
.pfb files to .pfa format, which is needed for eg. softfont download to
PostScript printers, but fails others, notably externally supplied font
files.

The cause is a faillure to decrement a todo-counter when extra
characters are read from the input stream.

>How-To-Repeat:

$ pfbtops OCRBPB__.PFB > /dev/null 
pfbtops: first byte of packet not 0x80
$

>Fix:

I had a rather basic patch but then discovered this has been fixed in
groff 1.19.1 and later, so an import of that may be more desirable.

The precise fix for this problem was committed as pfbtops.c cvs rev 1.12:

  http://savannah.gnu.org/cgi-bin/viewcvs/groff/groff/src/utils/pfbtops/pfbtops.c.diff?r2=text&tr1=1.11&tr2=1.12&r1=text&diff_format=u

The above patch does also work for pfbtops.c as shipped with FreeBSD 5.4.

>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list