[comp.lang.pascal] Re^2: Turbo Bug<s>

leonard@bucket.UUCP (Leonard Erickson) (07/17/89)

LAUFMAN-H@osu-20.ircc.ohio-state.edu (Harry Laufman) writes:

<KMZVOKEL writes :
<> ...when sending values to the printer thru Turbo Pascal that
<> certain values get corrupted.
<I recall reading in something.virus that at least one virus infects
<the BIOS so that sequences sent to the printer are corrupted in a
<diabolical fashion, ie. only certain, random sequences are corrupted,
<etc.  This is NOT a Turbo only virus, it seems all output to the
<printer would be effected.  If other printer sequences are Ok, like
<COPY Numbers.txt Prn: ,etc. then I guess you're virus free.

One thing that has to be remembered is that in Turbo Pascal versions
4.0 and up, the printer is opened in ASCII mode, not in BINARY mode
(ie it works like COPY file PRN /A, rather than COPY file PRN /B)
 
So control characters will give odd results...
-- 
Leonard Erickson		...!tektronix!reed!percival!bucket!leonard
CIS: [70465,203]
"I'm all in favor of keeping dangerous weapons out of the hands of fools.
Let's start with typewriters." -- Solomon Short