gzip decompression not always working
Opher Shachar
ophers at ladpc.co.il
Sun Sep 28 09:05:48 PDT 2008
Hello all,
If I issue the command:
lp MyPostscriptFile.gz
It works as expected and I see in error_log these lines:
D [28/Sep/2008:15:36:06 +0300] cupsdReadClient: 17 POST /printers/hptasht HTTP/1.1
D [28/Sep/2008:15:36:06 +0300] cupsdAuthorize: No authentication data provided.
D [28/Sep/2008:15:36:06 +0300] Print-Job ipp://localhost/printers/hptasht
D [28/Sep/2008:15:36:06 +0300] print_job: auto-typing file...
D [28/Sep/2008:15:36:06 +0300] print_job: request file type is application/postscript.
[snip]
I [28/Sep/2008:15:36:06 +0300] Job 661 queued on "hptasht" by "user".
[snip]
I [28/Sep/2008:15:36:06 +0300] Started filter /usr/lib/cups/filter/gziptoany (PID 13378) for job 661.
I [28/Sep/2008:15:36:06 +0300] Started filter /usr/lib/cups/filter/pstops (PID 13379) for job 661.
I [28/Sep/2008:15:36:06 +0300] Started backend /usr/lib/cups/backend/socket (PID 13380) for job 661.
But if I issue the command:
lp MyPostscriptFile.gz -odocument-format=text/plain
to get the postscript source to print I get gibberish and the following in error_log:
D [28/Sep/2008:15:37:29 +0300] cupsdReadClient: 17 POST /printers/hptasht HTTP/1.1
D [28/Sep/2008:15:37:29 +0300] cupsdAuthorize: No authentication data provided.
D [28/Sep/2008:15:37:29 +0300] Print-Job ipp://localhost/printers/hptasht
D [28/Sep/2008:15:37:29 +0300] print_job: request file type is text/plain.
[snip]
I [28/Sep/2008:15:37:29 +0300] Job 662 queued on "hptasht" by "user".
[snip]
I [28/Sep/2008:15:37:29 +0300] Started filter /usr/lib/cups/filter/texttops (PID 13389) for job 662.
I [28/Sep/2008:15:37:29 +0300] Started filter /usr/lib/cups/filter/pstops (PID 13390) for job 662.
I [28/Sep/2008:15:37:29 +0300] Started backend /usr/lib/cups/backend/socket (PID 13391) for job 662.
Here the gziptoany filter was not prepended to the filter chain.
One way around this is to decompress the file before printing, ie:
gunzip MyPostscriptFile.gz | lp -odocument-format=text/plain
but this is not so elegant...
Could this be a feature request?
Is it by design? (or perhaps a bug?)
Thanks,
Opher Shachar.
More information about the cups
mailing list