General foo2zjs :  foo2zjs - foo2hp - foo2xqx - foo2lava - foo2qpdl - foo2oak
Support for linux printer drivers
The fastest message board... ever.
 
problem with IsCUPS in foo2zjs.c
Posted by: draeath ()
Date: December 09, 2007 12:14AM

In the latest (as of tonight/morning, december 9th) foo2zjs.c, the following code seems broken on my system. This happens in 32 and 64 bit OpenSuSE (10.2, and 10.3), Debian, FreeBSD, and Ubuntu.

    if (getenv("DEVICE_URL"))
        IsCUPS = 1;

The reason I know it doesn't work, is this is never true (as the output never occurs)
    if (IsCUPS)
        fprintf(stderr, "PAGE: %d %d\n", pageno, Copies);

IsCUPS is initialized as zero, and the only way to make it output page numbering to cups (for me anyways) is to remove the conditionals or initialize IsCUPS to 1.

I have an HP Laserjet 1020.


Am I missing something, or doing something stupid?

Options: ReplyQuote
Re: problem with IsCUPS in foo2zjs.c
Posted by: rickrich ()
Date: December 09, 2007 01:59AM

2007-12-09      Rick Richardson <rick.richardson@comcast.net>
        * Modify foo2*.c:
            If called by CUPS, print page accounting stuff to stderr.
            Change DEVICE_URL to DEVICE_URI for IsCUPS
            This is a misfeature of CUPS only.

Options: ReplyQuote
Re: problem with IsCUPS in foo2zjs.c
Posted by: draeath ()
Date: December 13, 2007 10:15PM

I'm don't think I'm understanding what your telling me. Is my CUPS behaving properly and the patch to correct it's previous misbehavior is actually causing me the trouble, or am I just not getting it?

Options: ReplyQuote


Sorry, only registered users may post in this forum.
This forum powered by Phorum.