On 25/05/11 09:35, Tim Allen wrote:
Hi
I'm using lpr to print out files generated by an ancient DOS program. I
have a batch file that uses Cygwin OpenSSH to send to a printer:
type %1 | ssh server lpr -PLaserjet
Now the DOS program uses extended ASCII 09Ch for '£' symbols, now
printing as little rectangles.
I believe SSH is irrelevant to all this, as it should be 8-bit clean. I
can confirm this by viewing the file in a Gnome terminal (Debian
Squeeze). Again I see little rectangles under UTF8 but selecting the
IBM850 character set displays the file correctly.
So I think the question is, how can I tell CUPS lpr to use code page
850? I can't find any relevant -o options in the lpr docs. Maybe I need
to hack /usr/lib/cups/filter/textonly (I see it has Tim W's name on it!!)?
Oops - textonly is for text only printers so that's a red herring!
Tim
--
Next meeting: Bournemouth, Tuesday 2011-06-07 20:00
Meets, Mailing list, IRC, LinkedIn, ... http://dorset.lug.org.uk/
How to Report Bugs Effectively: http://goo.gl/4Xue