1#! /bin/sh 2. "${srcdir=.}/init.sh"; path_prepend_ . ../src 3 4# Test C support: valid but unlikely C format strings are _not_ marked as 5# c-format by default. 6 7cat <<\EOF > xg-c-format-1.c 8gettext ("%1% on, %2% off"); 9EOF 10 11: ${XGETTEXT=xgettext} 12${XGETTEXT} --omit-header --no-location -d xg-c-format-1.tmp xg-c-format-1.c || Exit 1 13LC_ALL=C tr -d '\r' < xg-c-format-1.tmp.po > xg-c-format-1.po || Exit 1 14 15cat <<EOF > xg-c-format-1.ok 16msgid "%1% on, %2% off" 17msgstr "" 18EOF 19 20: ${DIFF=diff} 21${DIFF} xg-c-format-1.ok xg-c-format-1.po 22result=$? 23 24exit $result 25