Red Hat Bugzilla – Bug 253368
a2ps doesn't seem to honor the --encoding=utf-8 option
Last modified: 2007-11-30 17:12:13 EST
Description of problem:
a2ps doesn't seem to honor the --encoding=utf-8 option. Since all my files are
encoded using UTF-8 (after all, that's the default in all versions of Fedora), I
would like to be able to print a file that contains utf-8-encoded non-ascii
characters (i.e. code point > 128). But using the -X utf-8 option or not using
that option doesn't make a difference in the output: the "latin small letter a
with diaeresis" I'm trying to print comes out as "latin capital letter A with
tilde" plus "currency sign", which happen to be the ISO-8859-1 characters that
correspond to the UTF-8 encoding.
I have also tried changing the option in the file /etc/a2ps-site.cfg, but that
didn't help either.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Produce a plain text file containing e.g. a letter "ä", encoded using UTF-8
2. a2ps --encoding=utf-8 file-from-step-1
3. Alternatively: a2ps --encoding=utf-8 -o file.ps file-from-step-1; then view
file.ps using evince or some such program.
A piece of paper containing "Ã¤".
A piece of paper containing "ä"
Also, since the default encoding on Fedora 7 is UTF-8, the default for a2ps
should also be UTF-8 and not ISO-8859-1.
When I look at this report with Firefox, I need to set the page encoding to
ISO-8859-1 explicitly to get the effect I meant.
a2ps doesn't have any UTF-8 support.
*** This bug has been marked as a duplicate of 71496 ***