Fix for 587232, "-" replaced by "\$perp$"

Alex Cherepanov <[email protected]>
Newsgroups gmane.comp.printing.ghostscript.patches
Organization Coscript Software
Message-ID <[email protected]>
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.

_______________________________________________
gs-code-review mailing list
[email protected]
http://www.ghostscript.com/mailman/listinfo/gs-code-review
gdevpdfu.c.diff (text/plain, 457 B)
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;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.