[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#2558: HP-4m handling not robust enough for shared environment



>
> The distributed magic filter for the HP-4m laserjet isn't robust
> enough for a shared environment.  It is susceptable to any transient
> configuration from previous print jobs, and it may leave the printer
> in a non-default state for the next print job.  Both of these can
> result in corrupted jobs for someone.
>
> This is particularly noticable when job types are mixed.
>
> The HP-4m defines the sequence ESC % - 1 2 3 4 5 X as the "universal
> exit language" sequence.  This can be used to solve all these problems
> (including situations where the print job switches languages before
> completing).
>
> Here's how I've patched my copy of this filter.  Basically, I've
> bracketted all output with this sequence [it doesn't hurt to send it
> several times in a row].  I haven't tested all the permutations, but
> it works for the obvious cases.
>

This would be better handled by extending magicfilter to include a
prefix/suffix sequence ability.  magicfilter-1.2 (released today) does
not contain such a facility, but I will probably add one in the next
release.

	-hpa

--
PGP public key available - finger hpa@zytor.com
"The earth is but one country, and mankind its citizens."  --  Baha'u'llah
GE/CS 3.1 d- s-:- a- C++++ ULIS++++$ P+++ L++++>+++++ E++ W++ N++ o+ K
w--- O@ M V- PGP+ t+ 5++ X? R@ tv- b++ DI++++ D++(+) G e++ h- r-- y-



Reply to: