Originally posted by: SystemAdmin
I am suprised that a formatted form would have worked in earlier versions. The difference between ASCII and passthrough is that in ASCII the printer adds cr to lf and counts characters per line and adds cr lf at the end of the line length and also adds ff at the end of the number of lines. So if there are unprintable characters such as escape sequences or graphics, these get counted and cr lf can be adding in the middle of things making a real mess. The other thing that is done in ASCII (qprt -da) is that character/code page translation is done. It may be possible that the default code page got changed during the TL upgrade. I can't say, but you might check the locale command on both systems to see if that is different. Passthrough makes no changes to files.
I would say you can almost always use passthrough if you change the ct attribute so ct=\033&k2G
This is done with the lsvirprt command or the chvirprt command. This tells the printer to add a cr to lf so the ASCII driver doesn't have to. If you don't do this you can get stare steps. A way to see this is as follows:
lptest 5 10 | qprt -dp -P queuename
If you change the ct attribute, this will print ok.
Another things you can do to see what is really happening on the two levels of systems is to create a queue that prints to a file.
-
touch /dev/lpx
-
chmod +x 777 /dev/lpx
Now make a print queue that prints to a file in the dev directory.
Make sure to specify lpx as the file name.
Now print your form to the new lpx queue and then you can see what is going on with vi, or even us
od -ax /dev/lpx > /tmp/test1.out
I described this in the Redbook 'Printing for fun and profit in AIX 5L'.
Compare this output from both systems and you will see what is being done.
I plan to do printer consulting for AIX in 2008 and can be reached at
jwtesch@gmail.com for that purpose.
I hope this helps,
John