[cups.bugs] [HIGH] STR #1969: vnd.cups-raw mime type needs to look beyond 1024 for LANGUAGE=PCL

Tim Toolan toolan at ele.uri.edu
Sat Sep 9 10:50:16 PDT 2006


[STR New]

For the Ricoh Aficio 2075 copier, the LANGUAGE=PCL string is often past the
1024th byte.  The mime.types file only checks up to the 1024th byte,
causing misidentification of the mime type.  Changing the match length
from 1024 to 2048 bytes fixes this problem.

For reference, the relevant line from mime.types is:

application/vnd.cups-raw        (string(0,<1B>E) + !string(2,<1B>%0B)) \
                                string(0,<1B>@) \
                                (contains(0,128,<1B>%-12345X) + \
                                 (contains(0,1024,"LANGUAGE=PCL") \
                                  contains(0,1024,"LANGUAGE = PCL")))

Link: http://www.cups.org/str.php?L1969
Version: 1.2.3





More information about the cups mailing list