1
0
mirror of https://github.com/pdewacht/brlaser synced 2024-12-27 07:48:21 +01:00
Commit Graph

16 Commits

Author SHA1 Message Date
Peter De Wachter
f1e0b2df54 Reduce log level of cupsRasterOpen failure
If cupsRasterOpen fails, the most likely cause is that some earlier
filter didn't produce any output. If we output an error-level message
in this situation, we'll likely displace some earlier, more useful
message by the other filter.
2017-11-02 00:06:58 +01:00
Peter De Wachter
718053fa36 Add package name to all log messages 2017-10-30 20:07:27 +01:00
Peter De Wachter
931c677443 Get rid of iconv()
PJL has a job name field. I don't think this is used for anything, but
just in case I want to put something human-readable there. But it's
also probably a good idea to keep this pure ASCII text.

Previously I used iconv() to convert the CUPS job name to ASCII. But:
- on FreeBSD, an explicit "-liconv" seems to be necessary (#10),
- there's an autoconf macro to deal with this, but it's tangled up
  with gettext and it seems like a hassle,
- the //TRANSLIT//IGNORE feature I used seems to be a GNU extension
  and probably won't work on other systems anyway.

So instead, let's just concatenate some job information together,
dropping any non-ASCII component. That's probably good enough.
2017-10-23 22:09:29 +02:00
Peter De Wachter
69cc0bfcc7 Merge remote-tracking branch 'xc-racer99/master' 2017-10-14 21:40:58 +02:00
xc-racer99
7e59e6147e Add duplex code for DCP-7065DN
The official Brother driver treats Tumble and NoTumble differently, adding &l2S and &l1S respectively to the header.

Unfortunately, for me this resulted in missing lines in NoTumble.  By treating everything as Tumble and simply sending data rotated 180 for Tumble we get a good quality printout.
2017-05-01 12:26:22 -07:00
xc-racer99
5c5118edc1 Move num_copies to only the header
It's not needed to be at the beginning of every page and messes up duplex printing if it is
2017-05-01 12:26:17 -07:00
Peter Spiess-Knafl
93138fec87 Add missing #include <string> 2016-04-25 15:02:37 +02:00
Peter De Wachter
569e3f7766 Reject unexpected raster formats 2015-01-31 23:16:35 +01:00
Peter De Wachter
1474716b27 Misc cleanups, mostly in the test code 2015-01-31 23:13:48 +01:00
Peter De Wachter
19edb1767b Kill a harmless dead store
Just because clang's scan-build complained about it.
2014-07-07 13:03:57 +02:00
Peter De Wachter
bb1ba17b4f Split out block.h 2014-02-04 21:50:11 +01:00
Peter De Wachter
66ea095ede Changes to support GCC 4.6
GCC 4.6 is the oldest release that can compile this code without significant
changes.
2014-01-26 15:07:53 +01:00
Peter De Wachter
d2c108d303 brdecode: don't assume a fixed page size 2013-12-30 23:03:59 +01:00
Peter De Wachter
fc3680070b Fix a clang warning 2013-12-27 23:44:58 +01:00
Peter De Wachter
edc122f2c6 brdecode, a tool to decompress print files 2013-12-27 23:44:20 +01:00
Peter De Wachter
b7af16450c brlaser version 1 2013-12-27 16:58:00 +01:00