Package: geneweb
Version: 6.08dfsg-3.1
Severity: serious
Tags: patch
Justification: fails to build from source (but built successfully in the past)

Build fails with
iconv: conversion from `Binary' is not supported
on ca language file. The problem is that grep matches the file as binary, and
outputs "Binary file matches", which gets (mis)parsed and screw up iconv params.
Probably dependent on the version of grep, and the phase of the moon possibly. 
:-)

This should fix it anyway:

--- debian/mktemplates  2016-02-11 14:00:53.103700366 +0000
+++ debian/mktemplates~ 2016-02-11 13:59:01.000000000 +0000
@@ -67,7 +67,7 @@
            sed '/^\"Content-Type/s/CHARSET/UTF-8/' \
            > debian/pobuild/$pofilename.temp
 
-       pocharset=`grep -ai charset $pofile|cut -f2 -d=| sed 's/\\\\n\\"//g'`
+       pocharset=`grep -i charset $pofile|cut -f2 -d=| sed 's/\\\\n\\"//g'`
        cat $pofile | \
             iconv --from $pocharset --to utf-8 | \
            sed "s/$pocharset/UTF-8/g" \

Reply via email to