[Debian-l10n-commits] r1138 - /ddtp-dinstall/trunk/ddtp_i18n_check.sh
nekral-guest at users.alioth.debian.org
nekral-guest at users.alioth.debian.org
Fri Aug 8 22:48:21 UTC 2008
Author: nekral-guest
Date: Fri Aug 8 22:48:20 2008
New Revision: 1138
URL: http://svn.debian.org/wsvn/?sc=1&rev=1138
Log:
Indicate on stderr when a file is not encoded correctly.
Modified:
ddtp-dinstall/trunk/ddtp_i18n_check.sh
Modified: ddtp-dinstall/trunk/ddtp_i18n_check.sh
URL: http://svn.debian.org/wsvn/ddtp-dinstall/trunk/ddtp_i18n_check.sh?rev=1138&op=diff
==============================================================================
--- ddtp-dinstall/trunk/ddtp_i18n_check.sh (original)
+++ ddtp-dinstall/trunk/ddtp_i18n_check.sh Fri Aug 8 22:48:20 2008
@@ -272,7 +272,10 @@
rm -f $PACKAGES_LISTS_DIR/tmp.pkgs
# Check encoding
- iconv -f utf-8 -t utf-8 < $f > /dev/null 2>&1
+ iconv -f utf-8 -t utf-8 < $f > /dev/null 2>&1 || {
+ echo "$f is not an UTF-8 file" >&2
+ exit 1
+ }
# We do not check if the md5 in Translation-$lang are
# correct.
More information about the Debian-l10n-commits
mailing list