Red Hat Bugzilla – Bug 42656
a2ps doesn't print plain text files
Last modified: 2008-05-01 11:38:00 EDT
From Bugzilla Helper:
User-Agent: Mozilla/4.77 [en] (X11; U; Linux 2.4.2-2 i686)
Description of problem:
a2ps used to convert text files to postscript before sending them to
printer. At the moment it seems that the conversion fails as the postscript
printer (HPLJ 4050N) doesn't print. In addition if printing to postscript
file and viewing it with gv - ghostscript fails with errors or gv displays
empty page only with frame around it.
I don't know what magic a2ps uses to convert text to postscript so it
may be possible that actual fault is in some other place.
This used to work in RH 7.0 & 6.2.
Steps to Reproduce:
1. print any text file with a2ps
I use Polish ("pl_PL") locale and latin2 encoding but the latter doesn't
seem to matter. The fault disappers when locale is set to "en_GB" or "C".
If locale is set to "en" a2ps dumps core.
Created attachment 19855 [details]
Analysis and proposed patch
Created attachment 19863 [details]
Corrected patch for this bug and bug #40532
*** This bug has been marked as a duplicate of 40532 ***