[NTG-pdftex] Bug: <hex> string to () string

Heiko Oberdiek oberdiek@uni-freiburg.de
Tue, 29 Jul 2003 22:22:27 +0200


On Tue, Jul 29, 2003 at 09:15:22PM +0200, Hartmut Henkel wrote:

> On Tue, 29 Jul 2003, Heiko Oberdiek wrote:
> 
> > by pdfTeX, but the colors in some of the images are terrible wrong.
> 
> A typecast is missing in pdftexdir/pdftoepdf.cc, function copyObject():
> 
>             pdf_puts("(");
>             for (; *p != 0; p++) {
>                 c = (unsigned char) *p; // <--- typecast here!
>                 if (c == '(' || c == ')' || c == '\\')
>                     pdf_printf("\\%c", c);
>                 else if (c < 0x20 || c > 0x7F)
>                     pdf_printf("\\%03o", c);

Very nice, we found the same cause and fix. :-)

Best regards
  Heiko <oberdiek@uni-freiburg.de>