1#!/bin/sh
2# Test encoded accent info output.
3
4unset TEXINFO_OUTPUT
5: ${srcdir=.}
6input=`basename $0`.txi
7output=`basename $0`.info
8
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
14exit_status=$?
15if test $exit_status = 0; then
16  grep '�' $output >/dev/null \
17  && grep '�' $output >/dev/null \
18  && grep '/L' $output >/dev/null
19  exit_status=$?
20fi
21
22rm -f $output
23
24exit $exit_status
25