How to prevent stair stepping in CUPS?
James Egan
jegan472 at comcast.net
Tue Jul 24 16:19:40 PDT 2007
Using cups 1.1.23 on an HP-UX 11i server, I was getting this
error when attempting to print someone's .bash_profile:
lp -dhp1 .bash_profile
lp: unable to print file: client-error-document-format-not-supported
I found the problem to be an embedded ^U character in this stty command:
stty icanon intr \^c echo echoe \$
^Iechok erase \^h kill ^U icrnl isig onlcr opost parenb cs7 $
Here's the error_log entry when attempting to print the .bash_profile:
E [24/Jul/2007:13:14:13 +0500] print_job: Unsupported format 'application/octet-stream'!
I [24/Jul/2007:13:14:13 +0500] Hint: Do you have the raw file printing rules enabled?
So, I uncommented these lines in the mime.convs and mime.types files, to
enable the above mime type:
usr/local/cups/etc/cups> grep octet mime*
mime.convs:# Uncomment the following filter and the application/octet-stream type mime.convs:#application/octet-stream
application/vnd.cups-raw 0 -
mime.types:# Uncomment the following type and the application/octet-stream
mime.types:#application/octet-stream
This has the same affect as using the -o raw switch to lp. Anyway, now
when I print this text file (.bash_profile) the text stair steps like this:
line one
line two
line three
What can I do now to have this mime type add the CR/LF to each line?
I know I could do something that's really a pain in the ass and write
a filter using sed, or something, but I'm hoping there's a sane
solution.
-Thanks
More information about the cups
mailing list