[bug-gs] possible ps2epsi bug

Josh T. Burdick jburdick@gradient.cis.upenn.edu
Fri, 27 Jun 2003 15:59:10 -0400


  I tried to use ps2epsi on a Linux box.  It gave the error:

sed: -e expression #1, char 42: Invalid range end

  That sed command contained the command

'/^%%BeginPreview:/,/^%%EndPreview[^!-~]*$/d' -e '/^%!PS-Adobe/d'\
        -e '/^%%[A-Za-z][A-Za-z]*[^!-~]*$/d' -e '/^%%[A-Za-z][A-Za-z]*: /d'
 
  I think it didn't like the unescaped ~ in [^!-~].  I escaped it,
changing it to

sed -e '/^%%BeginPreview:/,/^%%EndPreview[^!-\~]*$/d' -e '/^%!PS-Adobe/d'\
        -e '/^%%[A-Za-z][A-Za-z]*[^!-\~]*$/d' -e '/^%%[A-Za-z][A-Za-z]*: /d'

  and it didn't complain (and the resulting .epsi was viewable in
Photoshop.)

  Versions of things:

ps2epsi : # $Id: ps2epsi,v 1.7.2.1 2002/04/22 20:18:24 giles Exp $
sed : GNU sed v. 4.0.5 

  hope this helps,
  Josh
-- 
Josh Burdick
http://www.cis.upenn.edu/~jburdick
jburdick@gradient.cis.upenn.edu