[comp.unix.i386] sco unix 3.2 - printing binary data query

john@beaudin.UUCP (John Beaudin) (06/27/90)

When I submit a certain file containing non-textual data for printing
on a dot matrix printer, some operating system entity apparently filters
out some of the bytes. How can I get this file to /dev/lp0? It prints
just fine from dos (:-) Somebody locally suggested making an ioctl call,
but my experience with this is null, & I haven't found any obvious
manual references (that I recognize) to this.

I do have the development system, in case an alternate printing program
is required.

Thanks to all who consider this problem.

-- 
My .signature is awaiting apropriate display technology

hb@vpnet.chi.il.us (hank barta) (07/02/90)

| 
| When I submit a certain file containing non-textual data for printing
| on a dot matrix printer, some operating system entity apparently filters
| out some of the bytes.

How are you submitting this to the printer? I use the print spooler
(for which the setup seems to be one of the more challenging aspects
in Unix) and pass it nroff output which includes various control
codes.

I would guess that if you use something like 'cat >/dev/lp0' that cat
might strip out control codes.

john@beaudin.UUCP (John Beaudin) (07/05/90)

hb@vpnet.chi.il.us (hank barta) writes:

>| 
>| When I submit a certain file containing non-textual data for printing
>| on a dot matrix printer, some operating system entity apparently filters
>| out some of the bytes.

>How are you submitting this to the printer? I use the print spooler
>(for which the setup seems to be one of the more challenging aspects
>in Unix) and pass it nroff output which includes various control
>codes.

I tried lp & cat, to no avail. My file contains characters (among others)
with the 8th bit on. Here's a uuencoded sample (for an Epson LQ-850 printer)
of the address label I want to print:

----cut here ----
begin 644 label
M"AM%&S0;> $;:P$;=S$;5S$@(" @(" @(" @(" ;1ALU&W<P&U<P-C X($=/
M4D1/3B!"04M%4B!23T%$(" @(" @(" @                #0H;11LT&W@!
M&VL!&W<Q&U<Q14Q%0U123U-/1E0@&T8;-1MW,!M7,%=)3$Q/5T1!3$4@(" @
M("!/3BP@33)((#-"-" @("                T*&TL ,@ !_O[^_O[^_O[^
M_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^
M_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^
M_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^
M_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^
M_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^
M_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^
M_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^#0H@#0I";W@@(#$@;V8@(" @
M,2 @(" @(" @(" @(" @(" @(" @("!)1",@,# P+3 Q-               
M                              T*&TL ,@ !_O[^_O[^_O[^_O[^_O[^
M_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^
M_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^
M_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^
M_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^
M_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^
M_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^
M_O[^_O[^_O[^_O[^_O[^_O[^_O[^#0I3:&EP(%1O.B @("!(15=,1514(%!!
M0TM!4D0@0U535"X@4U50+D-%3BX-"B @(" @(" @(" @(#0W-2!(3T]$(%)$
M#0H@(" @(" @(" @("!53DE4(#(-"B @(" @(" @(" @($U!4DM(04T@(" @
M(" @("!/3BP@3#-2(#A(,0T*( T*"D%T=&5N=&EO;CH@(%-4159%($5)3$52
M(" @(" @(" @                                                
M                #0H;2P R  '^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^
M_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^
M_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^
M_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^
M_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^
M_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^
M_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^_O[^
M_O[^_O[^_O[^_OX-"B @(" @(" @(" @(" @(" @(" @(" @(" @(" @(" @
6(" @(" @("!S:&EP('9I83H@55!3#2 @
 
end
----cut here ----
My printer stops near the '_O[' string. This file prints ok from dos.
-- 
My .signature is awaiting apropriate display technology

walter@mecky.UUCP (Walter Mecky) (07/06/90)

In article <268e3558-675.1comp.unix.i386-1@vpnet.chi.il.us> hb@vpnet.chi.il.us (hank barta) writes:
+ | 
+ | When I submit a certain file containing non-textual data for printing
+ | on a dot matrix printer, some operating system entity apparently filters
+ | out some of the bytes.
+ 
+ How are you submitting this to the printer? I use the print spooler
+ (for which the setup seems to be one of the more challenging aspects
+ in Unix) and pass it nroff output which includes various control
+ codes.
+ 
+ I would guess that if you use something like 'cat >/dev/lp0' that cat
+ might strip out control codes.

Wrong. The reason for the failing is a bug in the original parallel driver.
Get the fix unx-162 form SCO support and all is fine.


-- 
Walter Mecky	[ walter@mecky	or  ...uunet!unido!mecky!walter ]

darko@hpspcoi.HP.COM (David Arko) (07/10/90)

This is just a guess, but would you be using the printer on the parallel
port?  If you are and you dont have SCO's SLS (Support Level Supplemnt
(Patch)) called unx162, you may get the 8th bit stripped off.

I am not sure but I think you have to call SCO to get this patch.

-- David Arko, (darko@hpspcoi.hp.com)