Path: csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Don Lancaster Newsgroups: comp.lang.postscript Subject: Filtering problem in GhostScript? Date: Sat, 09 Feb 2013 15:53:19 -0700 Lines: 24 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net hAdn3o2cONaXXLhbaa4v6AxjnX1rkHr13lsymsKYl90ukwkWg+5xPh4UKmkyA7MKMP Cancel-Lock: sha1:VcvprKtwaPOHP1cEooSnYeR6RAo= User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:17.0) Gecko/20130107 Thunderbird/17.0.2 Xref: csiph.com comp.lang.postscript:1249 I have long used this super elegant array to string converter in PostScript... /makestring {dup length string dup % new string of right size /NullEncode filter % make a file out of string 3 -1 roll {1 index exch write} forall pop } def Yet it seems to fail in GhostScript, writing all nulls instead. Does anyone see the problem? -- Many thanks, Don Lancaster voice phone: (928)428-4073 Synergetics 3860 West First Street Box 809 Thatcher, AZ 85552 rss: http://www.tinaja.com/whtnu.xml email: don@tinaja.com Please visit my GURU's LAIR web site at http://www.tinaja.com