printing latin1 using lpf

printing latin1 using lpf

Post by Andreas Lo » Sat, 13 Apr 1996 04:00:00



I have created a simple input filter to print latin1 character set
on my HP deskjet 510. It is a shell script which prints the appropriate
escape sequence and execs /usr/libexec/lpr/lpf. The lpf program
(from FreeBSD 2.1R) does not print any characters greater than
ascii value 127.  If anyone is interested, here is my fix:

        Andreas

*** lpf.c.orig  Mon May 29 14:47:56 1995
--- lpf.c       Fri Apr 12 20:45:58 1996
***************
*** 79,85 ****
        register int i, col;
        register char *cp;
        int done, linedone, maxrep;
!       char ch, *limit;

        while (--argc) {
                if (*(cp = *++argv) == '-') {
--- 79,86 ----
        register int i, col;
        register char *cp;
        int done, linedone, maxrep;
!       char *limit;
!       int ch;

        while (--argc) {
                if (*(cp = *++argv) == '-') {

--