Bug 253368 - a2ps doesn't seem to honor the --encoding=utf-8 option
Summary: a2ps doesn't seem to honor the --encoding=utf-8 option
Status: CLOSED DUPLICATE of bug 71496
Alias: None
Product: Fedora
Classification: Fedora
Component: a2ps (Show other bugs)
(Show other bugs)
Version: 7
Hardware: i386 Linux
Target Milestone: ---
Assignee: Tim Waugh
QA Contact: Fedora Extras Quality Assurance
Depends On:
Blocks: F8Target
TreeView+ depends on / blocked
Reported: 2007-08-18 11:58 UTC by Sjoerd Mullender
Modified: 2007-11-30 22:12 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-09-25 17:11:26 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

Description Sjoerd Mullender 2007-08-18 11:58:35 UTC
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):

How reproducible:
Every time.

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.
Actual results:
A piece of paper containing "ä".

Expected results:
A piece of paper containing "ä"

Additional info:
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.

Comment 1 Sjoerd Mullender 2007-09-06 20:56:33 UTC
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.

Comment 2 Tim Waugh 2007-09-25 17:11:26 UTC
a2ps doesn't have any UTF-8 support.

*** This bug has been marked as a duplicate of 71496 ***

Note You need to log in before you can comment on or make changes to this bug.