[Popcon-commits] cvs commit to popularity-contest by pere
pere at cvs.alioth.debian.org
pere at cvs.alioth.debian.org
Fri Apr 11 22:58:59 UTC 2008
Update of /cvsroot/popcon/popularity-contest
In directory alioth:/tmp/cvs-serv30208
Modified Files:
popcon.pl
Log Message:
Correct charset handling in popcon.pl for ISO-8859-1.
Index: popcon.pl
===================================================================
RCS file: /cvsroot/popcon/popularity-contest/popcon.pl,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -d -r1.25 -r1.26
--- popcon.pl 18 Mar 2008 09:26:16 -0000 1.25
+++ popcon.pl 11 Apr 2008 22:58:57 -0000 1.26
@@ -226,7 +226,7 @@
$file = $1;#Untaint
if ($file =~ m%/dists/stable/%) {
# Stable release (Etch) do not use UTF-8 in its package files
- open AVAIL, "-|:iso-8859-1","zcat $file";
+ open AVAIL, "-|:encoding(iso-8859-1)","zcat $file";
} else {
open AVAIL, "-|:utf8","zcat $file";
}
More information about the Popcon-commits
mailing list