3 # Test ISO C 99 <inttypes.h> format string directives.
6 trap 'rm -fr $tmpfiles' 1 2 3 15
8 tmpfiles="$tmpfiles fc3.tmp fc3.pot"
10 ${XGETTEXT} -o fc3.tmp --omit-header --no-location ${top_srcdir}/tests/format-c-3-prg.c
11 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
12 LC_ALL=C tr -d '\r' < fc3.tmp > fc3.pot
13 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
15 tmpfiles="$tmpfiles fc3.ok"
18 msgid "father of %<PRId8> children"
23 ${DIFF} fc3.ok fc3.pot || exit 1
25 tmpfiles="$tmpfiles fc3-de.po"
28 msgid "father of %<PRId8> children"
29 msgstr "Vater von %<PRId8> Kindern"
32 tmpfiles="$tmpfiles fc3-dir"
33 test -d fc3-dir || mkdir fc3-dir
34 test -d fc3-dir/de || mkdir fc3-dir/de
35 test -d fc3-dir/de/LC_MESSAGES || mkdir fc3-dir/de/LC_MESSAGES
38 ${MSGFMT} -o fc3-dir/de/LC_MESSAGES/fc3.mo fc3-de.po
40 tmpfiles="$tmpfiles fc3-de.po.tmp fc3-de.po.un"
41 : ${MSGUNFMT=msgunfmt}
42 ${MSGUNFMT} -o fc3-de.po.tmp fc3-dir/de/LC_MESSAGES/fc3.mo
43 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
44 LC_ALL=C tr -d '\r' < fc3-de.po.tmp > fc3-de.po.un
45 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
48 ${DIFF} fc3-de.po fc3-de.po.un || exit 1