Re: Fix for 587232, "-" replaced by "\$perp$"
"Igor V. Melichev" <[email protected]>
| Newsgroups | gmane.comp.printing.ghostscript.patches |
|---|---|
| Message-ID | <[email protected]> |
Alex, What is "BnZr" and why it reduces the chance of collision ? Why don't translate at all (I mean writing #0) ? Igor. ----- Original Message ----- From: "Alex Cherepanov" <[email protected]> To: <[email protected]> Sent: Sunday, January 04, 2004 11:05 PM Subject: [gs-code-review] Fix for 587232, "-" replaced by "\$perp$" > 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 >