On Mon, 12 Aug 2013 02:51:52 +0200, Adam Borowski wrote:

> 4a. perl and pod
> 
> Considering perl to be text raises one more issue: pod.  By perl's design,
> pod without a specified encoding is considered to be ISO-8859-1, even if
> the file contains "use utf8;".  This is surprising, and many authors use
> UTF-8 like everywhere else, leading to obvious results ("man gdm3" for one
> example).  Thus, there should be a tool (preferably the one mentioned
> above) that checks perl files for pod with undeclared encoding, and raises
> alarm if the file contains any bytes with high bit set.  If a conversion
> encoding is specified, such a declaration could be added automatically.

This tool exists, and it's called perl 5.18 :)
(Ok, more like Pod::Simple or pod2man or whatever that now errors out
on non-ASCII-chars in pod without =encoding.)
 
The results can be seen at
http://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=perl-5.18-transition;users=debian-p...@lists.debian.org
(half of the "POD errors" bugs).


Cheers,
gregor

-- 
 .''`.  Homepage: http://info.comodo.priv.at/ - OpenPGP key 0xBB3A68018649AA06
 : :' : Debian GNU/Linux user, admin, and developer  -  http://www.debian.org/
 `. `'  Member of VIBE!AT & SPI, fellow of the Free Software Foundation Europe
   `-   NP: Tom Waits: Come On Up To The House

Attachment: signature.asc
Description: Digital signature

Reply via email to