Sanity check (perl module Text::Unidecode)

This commit is contained in:
Vincent Riquer 2013-10-09 00:56:11 +02:00
parent e16b8ff4a9
commit 4ef24fc333

8
atom
View File

@ -295,6 +295,14 @@ then
disablevideo=1 disablevideo=1
(( sanitywarn++ )) (( sanitywarn++ ))
fi fi
if (( textunidecodeneeded )) && ! perl -MText::Unidecode -e 'exit;' 2>/dev/null
then
echo "[WARNING] Perl module Text::Unidecode is not available
Renaming to ASCII-only disabled" >&2
unset destinationascii
destinationascii=0
(( sanitywarn++ ))
fi
if (( sanityfail )) if (( sanityfail ))
then then
echo " echo "