blob: f480b4a28100ff4499177ef64311276abfce3b10 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#! /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
|