Closed michaelrsweet closed 17 years ago
CUPS.org User: mike
OK, this PCL text file was mis-identified as HP-GL/2... Fix attached.
CUPS.org User: mike
And another patch for hpgltops so it won't hang regardless...
"str2423.patch":
--- mime.types (revision 6617) +++ mime.types (working copy) @@ -84,7 +84,7 @@ contains(0,4096,"LANGUAGE = POSTSCRIPT") \ (contains(0,4096,<0a>%!) + \ !contains(0,4096,"ENTER LANGUAGE"))) -application/vnd.hp-HPGL hpgl string(0,<1B>&)\ +application/vnd.hp-HPGL hpgl \ string(0,<1B>E<1B>%0B) \ string(0,<1B>%-1B) string(0,<201B>)\ string(0,BP;) string(0,IN;) string(0,DF;) \
"str2423p2.patch":
--- hpgl-input.c (revision 6617) +++ hpgl-input.c (working copy) @@ -183,7 +183,9 @@ { bufptr = buf; while ((ch = getc(fp)) != ';')
@@ -195,6 +197,10 @@ while (!done) switch (ch = getc(fp)) {
Version: 1.2.11 CUPS.org User: imcguire
I am running CUPS on a Debian GNU/Linux 3.1 server (x86). Sometimes sending a job causes the hpgltops process to spin and consume cpu. If strace is used to attatch to the process it shows 'read(4, "", 4096) = 0' looping. I have seen this problem in version 1.2.6 - 1.2.11 and am not sure if the problem is specific to Linux. The problem can be reproduced at will and I have attached an example file that causes it.