1#! /bin/sh 2. "${srcdir=.}/init.sh"; path_prepend_ . ../src 3 4# Test C support: --trigraphs option. 5 6cat <<EOF > xg-c-4.in.c 7main()??<printf(gettext("Hello, " "World!" "??/n"));return 0 ? a??(0??'1??) : 1??!??-a[0]??#1;????> 8EOF 9 10: ${XGETTEXT=xgettext} 11${XGETTEXT} --omit-header --no-location --trigraphs -d xg-c-4.tmp xg-c-4.in.c || Exit 1 12LC_ALL=C tr -d '\r' < xg-c-4.tmp.po > xg-c-4.po || Exit 1 13 14cat <<EOF > xg-c-4.ok 15#, c-format 16msgid "Hello, World!\n" 17msgstr "" 18EOF 19 20: ${DIFF=diff} 21${DIFF} xg-c-4.ok xg-c-4.po 22result=$? 23 24exit $result 25