[tlbuild] dvips bug (and patch)

George N. White III gnwiii at gmail.com
Sat Nov 13 16:24:25 CET 2010


On Fri, Nov 12, 2010 at 1:13 PM, Alphonse Steiner <alphsteiner at gmail.com> wrote:

> Dear all,
>
> I have found a bug (not critical at all) in dvips : the header of the
> postcript file produced contains the input name instead of the output name.
> Below the patch to fix it.
>
> ========================================================================
> diff -uNr TeXLive-trunk/texk/dvipsk/output.c
> TeXLive-trunk.al/texk/dvipsk/output.c
> --- TeXLive-trunk/texk/dvipsk/output.c  2010-10-23 01:12:08.000000000 +0200
> +++ TeXLive-trunk.al/texk/dvipsk/output.c       2010-11-12
> 17:48:56.430299994 +0100
> @@ -1366,7 +1366,7 @@
>           error("We tried, but couldn't make it EPSF.");
>        fprintf(bitfile, "%%%%Creator: %s\n", banner + 8);
>        if (*iname)

The shouldn't that be "if(*oname)"?

> -         fprintf(bitfile, "%%%%Title: %s\n", iname);
> +         fprintf(bitfile, "%%%%Title: %s\n", oname);
>  #ifdef CREATIONDATE
>        jobtime=time(0);
>        fprintf(bitfile, "%%%%CreationDate: %s",
> ========================================================================
>
> Cheers,
> Al.
>
>



-- 
George N. White III <aa056 at chebucto.ns.ca>
Head of St. Margarets Bay, Nova Scotia



More information about the tlbuild mailing list