[NTG-pdftex] [ pdftex-Bugs-609 ] Pdf "convert" primitives bug

noreply at sarovar.org noreply at sarovar.org
Sat Oct 21 15:57:40 CEST 2006


Bugs item #609, was opened at 2006-09-28 18:50
You can respond by visiting: 
http://sarovar.org/tracker/?func=detail&atid=493&aid=609&group_id=106

Category: Primitives
Group: v1.40.0
>Status: Closed
Resolution: Fixed
Priority: 5
Submitted By: Taco Hoekwater (taco)
Assigned to: Taco Hoekwater (taco)
>Summary: Pdf "convert" primitives bug

Initial Comment:
The problem:

   When tex calls `conv_toks()' to execute `convert'
commands, a string
   may already be being built. A call to scan_toks
(pdf_scan_ext_toks)
   at that moment will incorporate that partial string
to the argument
   of the `convert' primitive, and erase it from the
output.

Example code:

   \message{\pdfmdfivesum{knuth}}
   \input knuth\pdfmdfivesum{}
   \bye

Affected primitives:

   \pdfescapestring
   \pdfescapename
   \pdfescapehex
   \pdfunescapehex
   \pdffilemoddate
   \pdffilesize
   \pdffiledump
   \pdfmdfivesum
   \pdfstrcmp

The needed fix:

   Somewhen before calling scan_pdf_ext_toks, you have
to store the
   partial string as a true tex string, then its
`partialness' has to
   be restored sometime later before leaving conv_toks().




----------------------------------------------------------------------

Comment By: Martin Schröder (oneiros)
Date: 2006-10-21 15:57

Message:
Logged In: YES 
user_id=421

A patch for this will be included in the next version (1.40).

----------------------------------------------------------------------

Comment By: Taco Hoekwater (taco)
Date: 2006-10-04 16:43

Message:
Logged In: YES 
user_id=1608

patch against pdftex.web from 20060928 attached.

----------------------------------------------------------------------

Comment By: Taco Hoekwater (taco)
Date: 2006-09-28 18:52

Message:
Logged In: YES 
user_id=1608

sorry, it is a bug, of course 

----------------------------------------------------------------------

You can respond by visiting: 
http://sarovar.org/tracker/?func=detail&atid=493&aid=609&group_id=106


More information about the ntg-pdftex mailing list