eSpeak NG is an open source speech synthesizer that supports more than hundred languages and accents.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

bom.test 639B

12345678910111213141516171819202122
  1. #!/bin/sh
  2. # This script checks for Byte Order Marks in source files
  3. # which in some places may break compilation/runtime of eSpeak NG
  4. # Look for more at: https://en.wikipedia.org/wiki/Byte_order_mark
  5. echo -n "testing for Byte Order Marks in source files ... "
  6. # TODO checking for other encodings (e.g. UTF-16, UTF-32, UTF-7) needs more elaborate search,
  7. # otherwise it shows many false positives
  8. cd $(dirname $0)/..
  9. grep -ErlI $'\xEF\xBB\xBF' * | grep -v '^build/' | tee tests/bom.check >/dev/null # UTF-8
  10. if [ -s tests/bom.check ] ; then
  11. echo "found:"
  12. cat tests/bom.check
  13. false
  14. else
  15. rm tests/bom.check
  16. echo "none found"
  17. true
  18. fi