3 # Test C support: --trigraphs option.
6 trap 'rm -fr $tmpfiles' 1 2 3 15
8 tmpfiles
="$tmpfiles xg-c-4.in.c"
9 cat <<EOF > xg-c-4.in.c
10 main()??<printf(gettext("Hello, " "World!" "??/n")); ??>
13 tmpfiles
="$tmpfiles xg-c-4.po"
14 : ${XGETTEXT=xgettext}
15 ${XGETTEXT} --omit-header --no-location --trigraphs xg-c-4.
in.c
-d xg-c-4
16 test $?
= 0 ||
{ rm -fr $tmpfiles; exit 1; }
18 tmpfiles
="$tmpfiles xg-c-4.ok"
21 msgid "Hello, World!\n"
26 ${DIFF} xg-c-4.ok xg-c-4.po