[ pdftex-Bugs-777 ] Bug fix for \pdfunescapehex
Bugs item #777, was opened at 2007-04-20 22:18
You can respond by visiting:
http://sarovar.org/tracker/?func=detail&atid=493&aid=777&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 \pdfunescapehex
Initial Comment:
The patch is based on pdftex-1.40.3 and fixes a bug
of \pdfunescapehex:
\pdfunescapehex returns a wrong result, if the last
character is not a hexadecimal digit and the last
hex pair is incomplete.
Test:
\def\test#1#2{%
\edef\x{\pdfunescapehex{#1}}%
\edef\y{\detokenize{#2}}%
\immediate\write16{%
[\detokenize{#1}] -> %
[\x] \ifx\x\y= \else<> \fi [\y]%
}%
}
\test{50}{P}% ok
\test{50X}{P}% ok
\test{5 }{P}% bug
\test{5X}{P}% bug
\csname @@end\endcsname
\end
Bug fix is attached:
utils.c.diff patches pdftexdir/utils.c.
Yours sincerely
Heiko
participants (1)
-
noreply@sarovar.org