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

Bug#277499: marked as forwarded (tetex-bin: xdvi and dvips mis-parse font map files)



Your message dated Fri, 22 Oct 2004 12:42:58 +0200
with message-id <20041022104258.GA1864@preusse>
has caused the Debian Bug report #277499,
regarding tetex-bin: xdvi and dvips mis-parse font map files
to be marked as having been forwarded to the upstream software
author(s) tex-k@mail.tug.org, 277499-forwarded@bugs.debian.org.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

---------------------------------------
Received: (at 277499-forwarded) by bugs.debian.org; 22 Oct 2004 10:43:36 +0000
>From hille42@web.de Fri Oct 22 03:43:36 2004
Return-path: <hille42@web.de>
Received: from smtp07.web.de [217.72.192.225] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1CKwtT-0007v4-00; Fri, 22 Oct 2004 03:43:35 -0700
Received: from [212.14.71.206] (helo=preusse.amasol.de)
	by smtp07.web.de with asmtp (WEB.DE 4.101 #44)
	id 1CKwsv-0004P7-00; Fri, 22 Oct 2004 12:43:01 +0200
Received: by preusse.amasol.de (sSMTP sendmail emulation); Fri, 22 Oct 2004 12:42:59 +0200
Date: Fri, 22 Oct 2004 12:42:58 +0200
From: Hilmar Preusse <hille42@web.de>
To: tex-k@mail.tug.org, 277499-forwarded@bugs.debian.org
Subject: (fwd) Bug#277499: tetex-bin: xdvi and dvips mis-parse font map files
Message-ID: <20041022104258.GA1864@preusse>
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
User-Agent: Mutt/1.4.1i
X-Operating-System: CYGWIN_NT-5.0 1.5.11(0.116/4/2) i686
X-Face: .n=jHnz:2pu0c0)ef]4O#1FE{Vak?h89!g7_#2+PzSRoIU[pJFNnz>gLhn}UMwv}4/j{X.. 2E+>U>P!`PYk
X-Confirmation-Request: yes
X-Confirm-Reading-To: "Hilmar Preusse" <hille42@web.de>
Sender: hille42@web.de
X-Sender: hille42@web.de
Delivered-To: 277499-forwarded@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-9.8 required=4.0 tests=BAYES_00,FROM_ENDS_IN_NUMS,
	HAS_BUG_NUMBER,HAS_PACKAGE autolearn=ham 
	version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level: 

Hi all,

here down in the Debian Bug Tracking System we've got a bug report
about dvips not correctly handling map files. xdvi seemed to have had
the same bug and seemed to have it already fixed[1]. I could neither
find something about that in the Changelog of dvips as of 2004-05-10
from latest tetex-beta nor a BTS for dvips.

Thanks for response.

Kind regards,
  Hilmar Preuße

[1] http://sourceforge.net/tracker/?group_id=23164&atid=377580&func=detail&aid=1029127
----- Forwarded message from Ben Harris <bjh21@bjh21.me.uk> -----

From: Ben Harris <bjh21@bjh21.me.uk>
Reply-To: Ben Harris <bjh21@bjh21.me.uk>, 277499@bugs.debian.org
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: Bug#277499: tetex-bin: xdvi and dvips mis-parse font map files
Date: Wed, 20 Oct 2004 14:23:38 +0100
Message-Id: <[🔎] E1CKGRG-000325-00@wraith.csi.cam.ac.uk>
X-Mailer: reportbug 2.63
X-Mailing-List: <debian-tetex-maint@lists.debian.org> archive/latest/9606

Package: tetex-bin
Version: 2.0.2-22
Severity: normal

Both dvips and xdvi parse TeX-to-PostScript font map files incorrectly.
Given a line like this:

myfont MyFont-PS <[myfont.enc <MyFont-PS.pfb

both of them fail to find the font file, and treat
"MyFont-PS.pfb" as an encoding.  This doesn't seriously break
dvips (since it just emits both files into its output), but does break
xdvi's Type 1 rendering.

Demonstrating this problem properly is difficult, but as an example,
populate ~/texmf as follows:

mkdir -p ~/texmf/web2c
cp /var/lib/texmf/web2c/updmap.cfg ~/texmf/web2c
mkdir -p ~/texmf/dvips/config
echo "myfont MyFont-PS <[myfont.enc <MyFont-PS.pfb" \
  > ~/texmf/dvips/config/myfont.map
mktexlsr
updmap --enable Map myfont.map

Now, run xdvi on some random dvi file with some debugging:

xdvi -debug 196608 /usr/share/doc/texmf/latex/base/usrguide.dvi.gz \
  2> xdvi.log
grep myfont xdvi.log

This gives output like:

dvi-draw.c:4382: T1: /home/bjh21/texmf/dvips/config/ps2pk.map:467: myfont -> (null) Enc: MyFont-PS.pfb Spec: <none>

Obviously, that should read "... -> MyFont-PS.pfb Enc: myfont.enc ...".

The bug appears to lie in the getpsinfo() function in texk/xdvik/dvips.c,
which has a variable called "encoding_p" which is supposed to indicate
whether the current word was tagged as an encoding file (by being preceded
by "<[".  Unfortunately, it doesn't get cleared at the end of each word,
only at the end of the line, so all files after one tagged with "<["
are treated as encodings, including the font file in the example above.

The equivalent function in texk/dvipsk/resident.c is rather different,
but has precisely the same bug.

I'm sorry this bug report is so incoherent.  Please tell me if there's
something I haven't adequately explained.
-- 
To UNSUBSCRIBE, email to debian-tetex-maint-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org


----- End forwarded message -----

-- 
http://www.hilmar-preusse.de.vu/



Reply to: