Re: Fix for 587232, "-" replaced by "\$perp$"
Ray Johnston <[email protected]>
| Newsgroups | gmane.comp.printing.ghostscript.patches |
|---|---|
| Message-ID | <[email protected]> |
Alex, Thanks for this fix. It looks fine. Please commit, with the log message including the bug #687232 (note that the subject of this message contained a typo "587232"). Regards, Ray ___________________________________________________________________ Alex Cherepanov wrote: > Transliterate '\0' character in PDF names to "BnZr" instated of > '?' to reduce the chance of name collision. > > DETAILS: > TeX generates Type 3 fonts with single character glyph names > equal to the character codes, i.e. /Encoding [(\000) cvn (\001) > cvn ... /? ...] . PDF writer used to transliterate '\0' to '?' because > #00 escape is invalid. This conflicts with /? glyph name, which > also occurs in the same font. > > > ------------------------------------------------------------------------ > > Index: gs/src/gdevpdfu.c > =================================================================== > RCS file: /cvs/ghostscript/gs/src/gdevpdfu.c,v > retrieving revision 1.43 > diff -b -u -r1.43 gdevpdfu.c > --- gs/src/gdevpdfu.c 14 Oct 2003 20:37:15 -0000 1.43 > +++ gs/src/gdevpdfu.c 4 Jan 2004 19:16:09 -0000 > @@ -799,7 +799,7 @@ > stream_puts(s, hex); > break; > case 0: > - stream_putc(s, '?'); > + stream_puts(s, "BnZr"); /* arbitrary */ > } > } > return 0; > > > ------------------------------------------------------------------------ > > _______________________________________________ > gs-code-review mailing list > [email protected] > http://www.ghostscript.com/mailman/listinfo/gs-code-review