#! /bin/sh . "${srcdir=.}/init.sh"; path_prepend_ . ../src # Test Python support: strings with hexadecimal escape sequences that are # invalid UTF-8. cat <<\EOF > xg-py-5.py _("\xE0") EOF : ${XGETTEXT=xgettext} LANGUAGE= LC_ALL=C ${XGETTEXT} --no-location -d xg-py-5.tmp xg-py-5.py 2>xg-py-5.err result=$? cat xg-py-5.err test $result = 1 || Exit 1 grep 'is not UTF-8 encoded' xg-py-5.err >/dev/null || Exit 1 exit 0