commit 50aa3587d4051691f2042db48bb67b41f6a2c938
parent 0bc834e6f3a435d043cabd926dc4fa1c866b50d8
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Wed, 9 Sep 2020 09:34:41 +0200
build: abort the update script if a PO file contains a control character
This is to prevent the ^Q from creeping back into the Romanian PO file.
Diffstat:
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/po/update_linguas.sh b/po/update_linguas.sh
@@ -26,6 +26,11 @@ for pofile in *.po; do
msgattrib --no-obsolete --no-fuzzy $pofile >trimmed.po || exit 4
mv trimmed.po $pofile || exit 4
done
+echo
+
+if grep "[[:cntrl:]]" ./*.po; then
+ echo "*** PO file contains control character"; exit 5;
+fi
# If needed, fix a problem in the Makefile template.
grep -q '^datarootdir' Makefile.in.in || \