accentenc 759 B

123456789101112131415161718192021222324252627
  1. #!/bin/sh
  2. # $Id: accentenc,v 1.4 2010-12-04 00:05:53 karl Exp $
  3. # Public domain. Test encoded accent info output.
  4. unset TEXINFO_OUTPUT LANG LANGUAGE
  5. LC_ALL=POSIX; export LC_ALL
  6. : ${srcdir=.}
  7. input=`basename $0`.txi
  8. output=`basename $0`.info
  9. # we expect two invalid encoded characters:
  10. # accent-text.txi:45: warning: invalid encoded character `#156'.
  11. # accent-text.txi:45: warning: invalid encoded character `#140'.
  12. # These are oe and OE, and they are not supported in Latin 1.
  13. ../makeinfo --enable-encoding --no-split -I$srcdir $srcdir/$input 2>/dev/null
  14. exit_status=$?
  15. if test $exit_status = 0; then
  16. grep 'ì' $output >/dev/null \
  17. && grep 'ï' $output >/dev/null \
  18. && grep '/L' $output >/dev/null
  19. exit_status=$?
  20. fi
  21. rm -f $output
  22. exit $exit_status