From d346eb42e48fa5a52e21b644311cfb3e66b062a1 Mon Sep 17 00:00:00 2001 From: Paul Licameli Date: Mon, 12 Feb 2018 00:51:54 -0500 Subject: [PATCH] Add to diagnostics.sh detection of the bad comment sequence --- locale/diagnostics.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/locale/diagnostics.sh b/locale/diagnostics.sh index d62b73d86..939c7c40f 100755 --- a/locale/diagnostics.sh +++ b/locale/diagnostics.sh @@ -16,4 +16,11 @@ for filename in `ls *.po`; do echo "${filename} " $'\t' $complete $'\t' "$((complete*100/total)) %" done | sort -n -k3 +echo + +# detect whether this sequence occures in any .po file. It will break +# msgfmt on Windows. +echo "Files with illegal comment sequence:" +fgrep -l '#~|' *.po + exit 0