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

Ray Johnston <[email protected]>
Newsgroups gmane.comp.printing.ghostscript.patches
Message-ID <[email protected]>
Alex,

BTW, in the log message, please also correct the "instated" to
"instead".

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
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.