[cups.bugs] [HIGH] STR #1825: auto-typing not work!

Marco marco.esposito at roma1.infn.it
Sat Jul 8 18:29:51 PDT 2006


[STR New]

cups considers this postscript file, named top.ps, a text file":

# cat top.ps
 initgraphics
 0.072 0.072 scale  %units are mils
     0 rotate
   250  1500 translate
 /vsml /Helvetica findfont  97 scalefont def
 /smal /Helvetica findfont 139 scalefont def
 /larg /Helvetica findfont 194 scalefont def
 /vlrg /Helvetica findfont 250 scalefont def
1
     9 setlinewidth
  3590  2763 moveto
  3574  2758 lineto
  3564  2748 lineto
  3559  2738 lineto
  3554  2717 lineto
  3554  2702 lineto
  3559  2681 lineto
  3564  2671 lineto
  3574  2661 lineto
  
  [.....]
  
  6540  3420 lineto
  6499  3461 lineto
  6458  3420 lineto
  6499  3379 lineto
 stroke
 copypage
 erasepage
#

in mime.types:

application/postscript ai eps ps string(0,%!) string(0,<04>%!) \
                                contains(0,128,<1B>%-12345X) \
                                (contains(0,1024,"LANGUAGE=POSTSCRIPT") \
                                 contains(0,1024,"LANGUAGE = Postscript")
\
                                 contains(0,1024,"LANGUAGE = PostScript")
\
                                 contains(0,1024,"LANGUAGE = POSTSCRIPT"))

The rule seems ok and every *.ps files, in theory, are 
a PostScript file, but CUPS does not follow its own rules
for auto-typing file and considers it a text file.

Link: http://www.cups.org/str.php?L1825
Version: 1.1.22rc1





More information about the cups-devel mailing list