4 # This tool is only used in building spec.txt for a release, not used as
5 # part of the normal build/install process, so only Maintainers are affected
6 # by requirements here.
10 if echo a | pcregrep -q a 2>/dev/null
12 pcregrep -q '[^\x{20}-\x{7E}]' "$filename"
15 perl -ne 'BEGIN {$rv=1};END {exit $rv};
16 if (/[^\r\n\x{20}-\x{7E}]/) { $rv = 0; last }' < "$filename"
22 echo >&2 "$0: found non-ASCII characters in $filename"
29 echo >&2 "$0: problem checking for non-ASCII characters in $filename"
33 echo >&2 "$0: unhandled return value from pcregrep: $grepstatus"