From 50aa3587d4051691f2042db48bb67b41f6a2c938 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Wed, 9 Sep 2020 09:34:41 +0200 Subject: [PATCH] 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. --- po/update_linguas.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/po/update_linguas.sh b/po/update_linguas.sh index 17a90d21..0570f315 100755 --- 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 || \