Bug#2122: xdvik doesn't handle the `zcat convention
Package: xdvik
Version: 18f-4
xdvik does not handle the `zcat convention (used in postscript specials
for including compressed .eps figures) correctly. As a result,
compressed figures included in my older dvi files (produced with
latex209) are not found, although they are there, and an older xdvik
does display them.
This is a bug in xdvik-18f itself (the docs say it should work). The
attached patch corrects the problem. As I have not notified the
original author of the package, I wonder whether this report will be
propagated to him for inclusion in a future release.
Carlos Fonseca
*** xdvik-18f/xdvik/special.c Mon Dec 26 19:40:33 1994
--- xdvik-18f.mod/xdvik/special.c Tue Oct 31 16:27:00 1995
***************
*** 679,685 ****
} else if (strncmp(cp, " plotfile ", 10) == 0) {
cp += 10;
while (isspace(*cp)) cp++;
! for (filename = cp; !isspace(*cp); ++cp);
*cp = '\0';
#if PS
{
--- 679,691 ----
} else if (strncmp(cp, " plotfile ", 10) == 0) {
cp += 10;
while (isspace(*cp)) cp++;
! /* handle "`zcat file". Adapted from dvipsk...*/
! if (*cp == '"') {
! cp++;
! for (filename = cp; *cp && (*cp != '"'); ++cp);
! } else {
! for (filename = cp; *cp && !isspace(*cp); ++cp);
! }
*cp = '\0';
#if PS
{
Carlos Fonseca E-mail: C.Fonseca@shef.ac.uk
Dept. Automatic Control & Systems Eng.
University of Sheffield Tel.: +44 (0)114 282 5236
Mappin Street Fax : +44 (0)114 273 1729
Sheffield S1 3JD
United Kingdom
Reply to: