CUPS wont print file containing single null character

Tim Waugh twaugh at redhat.com
Tue May 18 13:42:34 UTC 2004


On Tue, May 18, 2004 at 08:58:26AM -0400, Billy Davis wrote:

> We have an application that appends a null character to some print
> lines.  If there is a single null character in the disk spool file,
> CUPS interprets the file as an incompatible format.  If we remove
> the null character, CUPS prints just fine.  Is there a command line
> switch that will tell CUPS to filter the nulls and print everything
> else?

Obviously the best thing to do is fix the application, but in lieu of
that you can use 'lpr -odocument-format=text/plain' to force it to
interpret the file as a plain text file.

If that fails, the best thing is to try stripping out the nuls before
giving the file to the spooler.

Tim.
*/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.fedoraproject.org/pipermail/users/attachments/20040518/fc40b236/attachment-0002.bin 


More information about the users mailing list