*BSD News Article 65737


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.rmit.EDU.AU!news.unimelb.EDU.AU!munnari.OZ.AU!news.ecn.uoknor.edu!paladin.american.edu!gatech!news.mathworks.com!fu-berlin.de!news.belwue.de!news.uni-stuttgart.de!uni-regensburg.de!uni-erlangen.de!news.th-darmstadt.de!hotb.RoBIN.de!layla.RoBIN.de!marvin.RoBIN.de!marvin.RoBIN.de!not-for-mail
From: andreas@marvin.RoBIN.de (Andreas Lohr)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: printing latin1 using lpf
Date: 12 Apr 1996 21:26:51 +0200
Organization: disorganized
Lines: 34
Message-ID: <4kmapr$t6@marvin.RoBIN.de>
NNTP-Posting-Host: marvin.robin.de
X-Newsreader: TIN [version 1.2 PL2]

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) == '-') {


-- 
andreas@marvin.robin.de (home) | "Beware of programmers carrying screwdrivers!"
al@rtsffm.com (work)           |