Bug 429277

Summary: mpage doesn't handle UTF-8 input
Product: [Fedora] Fedora Reporter: Horst H. von Brand <vonbrand>
Component: mpageAssignee: Tomas Smetana <tsmetana>
Status: CLOSED CANTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: 9   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-07-22 06:05:46 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
A textfile (UTF-8) that shows the problem when mpage'd
none
The postscript file generated here none

Description Horst H. von Brand 2008-01-18 13:44:39 UTC
Description of problem:
When doing, eg.

   mpage -1H UTF-8-file | lpr

the output for accented characters (Spanish printed here ;-) is gibberish.

Version-Release number of selected component (if applicable):
mpage-2.5.6-1.fc9

How reproducible:
Always

Steps to Reproduce:
1. mpage tstfile.txt > tstfile.ps
2. evince tstfile.ps
3.
  
Actual results:
tstfile.ps is gibberish

Expected results:
Correctly rendered text

Additional info:

Comment 1 Horst H. von Brand 2008-01-18 13:44:39 UTC
Created attachment 292140 [details]
A textfile (UTF-8) that shows the problem when mpage'd

Comment 2 Horst H. von Brand 2008-01-18 13:46:28 UTC
Created attachment 292141 [details]
The postscript file generated here

Comment 3 Tomas Smetana 2008-01-21 11:25:22 UTC
I don't think this has ever worked.  I'll try to look at the problem but the
required changes in the code would be nontrivial so I don't promise anything.

Comment 4 Horst H. von Brand 2008-01-22 22:01:31 UTC
Perhaps the simplest solution is to recode(1) into Latin-1...

Comment 5 Tomas Smetana 2008-01-23 06:55:43 UTC
(In reply to comment #4)
> Perhaps the simplest solution is to recode(1) into Latin-1...

No. It's not a solution.  The goal is NOT to lose the national characters.  As
for Spanish the recoding should go through ISO-8859-15 (supported by mpage) but
there are other languages with other alphabets where mpage fails.

Comment 6 Bug Zapper 2008-05-14 04:48:31 UTC
Changing version to '9' as part of upcoming Fedora 9 GA.
More information and reason for this action is here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 7 Tomas Smetana 2008-07-22 06:05:46 UTC
Sorry.  I don't think I can fix this.