[NTG-pdftex] [ pdftex-Bugs-369 ] Bug fix for \pdfescapename and \pdfescapestring

noreply at sarovar.org noreply at sarovar.org
Tue Jun 21 00:17:55 CEST 2005


Bugs item #369, was opened at 2005-06-18 19:00
You can respond by visiting: 
http://sarovar.org/tracker/?func=detail&atid=493&aid=369&group_id=106

Category: None
Group: None
>Status: Closed
>Resolution: Accepted
Priority: 5
Submitted By: Heiko Oberdiek (oberdiek)
Assigned to: Nobody (None)
Summary: Bug fix for \pdfescapename and \pdfescapestring

Initial Comment:
Hello,

the attached patch is based on pdftex-1.30.0-rc1.

It fixes the following problems with
\pdfescapename and \pdfescapestring:

* In both cases zero data bytes result in truncated
strings,
  because the length is measured by "strlen".
  This is fixed by adding a length parameter to the
  string conversion functions, see utils.c: escapestr()
  and escapename().

* \pdfescapename:
  * delimiter character must be escaped, too.
  * zero byte is ignored, see specification.
  * documentation: specification added for
    convertStringToPDFName() in utils.c

Patched files:
  * utils.c
      main part of the fix, especially function
      convertStringToPDFName().
  * pdftoepdf.cc, epdf.h, ptexlib.h
      because of changed signature of
convertStringToPDFString()

Patch is applied by
  patch <EscapeNameString.patch
in directory
  src/texk/web2c/pdftexdir

Test files that test the conversion of all characters:
  test-escapename.tex
  test-escapestring.tex

Yours sincerely
  Heiko <oberdiek at uni-freiburg.de>

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

>Comment By: Martin Schröder (oneiros)
Date: 2005-06-21 00:17

Message:
Logged In: YES 
user_id=421

Included in #371

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

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


More information about the ntg-pdftex mailing list