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: Open
Resolution: None
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