Date: Mon, 16 Apr 2001 11:10:06 -0700 From: "Michael O'Henly" <michael@tenzo.com> To: freebsd-stable@FreeBSD.ORG, freebsd-questions@FreeBSD.ORG Cc: Christopher Masto <chris@netmonger.net> Subject: Re: Printer madness... Message-ID: <01041611100601.17291@h24-69-46-74.gv.shawcable.net> In-Reply-To: <20010416121227.A10002@netmonger.net> References: <000001c0c573$9bc40680$1401a8c0@tedm.placo.com> <01041516133803.00452@h24-69-46-74.gv.shawcable.net> <20010416121227.A10002@netmonger.net>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
On Monday 16 April 2001 09:12, Christopher Masto wrote:
> On Sun, Apr 15, 2001 at 04:13:38PM -0700, Michael O'Henly wrote:
> > So after, say, eight hours of accumulated effort I started writing
> > another plea for assistance to the list and began by inserting
> > /etc/printcap into kmail. Lo and behold, at the end of the last line
> > there were a bunch of garbage characters that were not visible in xemacs!
> > I opened the file in vi (where the garbage chars were also not visible),
> > deleted and reentered the last line -- and now it works perfectly.
> >
> > I'd hate to say that the moral of this story is not to trust xemacs. If
> > you can't trust xemacs, what hope is there for humanity...?
>
> I would love to have a copy of that file. I use XEmacs all the time and
> have never seen that behavior - I'd like to know what to watch out for.
Hi Christopher...
Happy to oblige. This is what it looks like when I insert the file into the
kmail editor (File>Insert File...). Notice the garbage char at the very end.
lp|hp4050|HP LaserJet 4050:\
:sh:\
:lp=/dev/lpt0:\
:sd=/var/spool/lpd/lp:\
:lf=/var/log/lp-errs:\
:if=/usr/local/libexec/psif:\
:df=/usr/local/libexec/psdf:\
:tf=/usr/local/libexec/pstf:ÿ
This what I get when I cut-and-paste from xemacs into kmail.
lp|hp4050|HP LaserJet 4050:\
:sh:\
:lp=/dev/lpt0:\
:sd=/var/spool/lpd/lp:\
:lf=/var/log/lp-errs:\
:if=/usr/local/libexec/psif:\
:df=/usr/local/libexec/psdf:\
:tf=/usr/local/libexec/pstf:
And attached is the actual file. Note that it starts out with several
commented lines that I haven't included above.
Hope this is useful. If you reach any conclusions, I'd be interested in
hearing them.
M.
--
Michael O'Henly
TENZO Design
[-- Attachment #2 --]
# @(#)printcap 5.3 (Berkeley) 6/30/90
# $FreeBSD: src/etc/printcap,v 1.10 1999/08/27 23:23:43 peter Exp $
#
#
# This enables a simple local "raw" printer, hooked up to the first
# parallel port. No kind of filtering is done, so everything you
# pass to the "lpr" command will be printed unmodified.
#
# Remember, for further print queues you're going to add, you have to
# chose different spool directories (the "sd" capability below),
# otherwise you will greatly confuse lpd.
#
# For some advanced printing, have a look at the "apsfilter" package.
# It plugs into the lpd system, allowing you to print a variety of
# different file types by converting everything to PostScript(tm)
# format. If you don't have a PostScript(tm) printer, don't panic,
# but do also install the "ghostscript" package.
#
# Do also refer to section 7 (Printing) of the handbook. A local copy
# can be found under /usr/share/doc/handbook/handbook.{html,latin1}.
#
# Banner pages are now suppressed by default. Remove the :sh:
# capability to turn them back on.
#
#lp|local line printer:\
# :sh:\
# :lp=/dev/lpt0:sd=/var/spool/output/lpd:lf=/var/log/lpd-errs:
#
# Sample remote printer. The physical printer is on machine "lphost".
# NB: you cannot perform any kind of local filtering directly. If
# you need local filters (e.g. LF -> CR-LF conversion for HP printers),
# create a filter script that recursively calls lpd with another -P
# argument after filtering.
#
#remote|sample remote printer:\
# :sh:\
# :rm=lphost:sd=/var/spool/output/lphost:lf=/var/log/lpd-errs:
#
# Simple Russian printer with hardware CP866 character set, output filter
# used for KOI8-R -> CP866 conversion
#
#lp|Russian local line printer:\
# :sh:of=/usr/libexec/lpr/ru/koi2alt:\
# :lp=/dev/lpt0:sd=/var/spool/output/lpd:lf=/var/log/lpd-errs:
#
lp|hp4050|HP LaserJet 4050:\
:sh:\
:lp=/dev/lpt0:\
:sd=/var/spool/lpd/lp:\
:lf=/var/log/lp-errs:\
:if=/usr/local/libexec/psif:\
:df=/usr/local/libexec/psdf:\
:tf=/usr/local/libexec/pstf:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?01041611100601.17291>
