FS#13901 - [perl] pod2man turns UTF8 into "A~X"s

Attached to Project: Arch Linux
Opened by SkippyleGrandGourou (SkippyleGrandGourou) - Saturday, 21 March 2009, 13:41 GMT
Last edited by Kevin Piche (kpiche) - Sunday, 16 May 2010, 03:16 GMT
Task Type Bug Report
Category Upstream Bugs
Status Closed
Assigned To Kevin Piche (kpiche)
Francois Charette (Firmicus)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description: utf8 characters of pod2man are turned into A~X, making the output unreadable. More informations (including patches) are available on debian's bugtracker, they had the same issue and managed to solve it :
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=480997


Additional info:
* package version(s): perl 5.10.0-4


Steps to reproduce:
Copy the three following lines into a file :
----- 8< -----
=pod

éèà
----- 8< -----
Convert it into a manpage and have a look at it :
$ pod2man myfile > mymanpage; man ./mymanpage
This task depends upon

Closed by  Kevin Piche (kpiche)
Sunday, 16 May 2010, 03:16 GMT
Reason for closing:  No response
Additional comments about closing:  This seems to work in 5.12.0 with the proper options used.
Comment by SkippyleGrandGourou (SkippyleGrandGourou) - Saturday, 21 March 2009, 14:03 GMT
Just as a note, a workaround is to add the following line in the pod file :
=encoding utf8

It doesn't solve the problem though, since utf8 characters are replaced by ASCII equivalents :
é -> e
è -> e
à -> a


But it helps making a somewhat human readable output.
Comment by Kevin Piche (kpiche) - Saturday, 08 May 2010, 01:19 GMT
This is working properly in perl 5.12 as long as you use the --utf8 switch and have "=encoding utf8" in the file:

----8<----
=encoding utf8

=pod

中文 éèà
----8<----

pod2man --utf8 myfile >myman

Loading...