From jpd@dsb.tudelft.nl  Fri Sep 16 19:33:13 2005
Return-Path: <jpd@dsb.tudelft.nl>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 0166416A41F
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 16 Sep 2005 19:33:13 +0000 (GMT)
	(envelope-from jpd@dsb.tudelft.nl)
Received: from [127.0.0.1] (e178065054.adsl.alicedsl.de [85.178.65.54])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 561A143D48
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 16 Sep 2005 19:33:11 +0000 (GMT)
	(envelope-from jpd@dsb.tudelft.nl)
Received: from prozac.local (localhost [127.0.0.1])
	by [127.0.0.1] (8.13.3/8.13.3) with ESMTP id j8GJXAIR076083
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 16 Sep 2005 21:33:10 +0200 (CEST)
	(envelope-from jpd@dsb.tudelft.nl)
Received: (from jpd@localhost)
	by prozac.local (8.13.3/8.13.3/Submit) id j8GJXAdv076082
	for FreeBSD-gnats-submit@freebsd.org; Fri, 16 Sep 2005 21:33:10 +0200 (CEST)
	(envelope-from jpd@dsb.tudelft.nl)
Message-Id: <20050916193310.GA76031@dsb.tudelft.nl>
Date: Fri, 16 Sep 2005 21:33:10 +0200
From: jpd@dsb.tudelft.nl
Reply-To: jpd@dsb.tudelft.nl
To: FreeBSD-gnats-submit@freebsd.org
Subject: [update request] groff util pfbtops fails to count properly.
X-Send-Pr-Version: 3.113

>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:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Sep 16 19:40:19 GMT 2005
>Closed-Date:    Fri Sep 16 20:40:55 GMT 2005
>Last-Modified:  Fri Sep 16 20:40:55 GMT 2005
>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@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:
State-Changed-From-To: open->closed 
State-Changed-By: ru 
State-Changed-When: Fri Sep 16 20:40:17 GMT 2005 
State-Changed-Why:  
I will import Groff 1.19.2 soon. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=86226 
>Unformatted:
