3 # Test ISO C 99 <inttypes.h> format string directives.
4 # Verify that msgunfmt, applied to a .mo file of major revision 1 (with
5 # system-dependent strings), yields a PO file with c-format annotation, so that
6 # msgfmt applied to it will again produce a .mo file of major revision 1.
9 trap 'rm -fr $tmpfiles' 1 2 3 15
11 tmpfiles="$tmpfiles mu-2.in"
14 msgid "truncating at %<PRIuMAX> bytes in output file %s"
15 msgstr "schneide bei %<PRIuMAX> Bytes in Ausgabedatei %s ab"
18 tmpfiles="$tmpfiles mu-2.mo"
20 ${MSGFMT} -o mu-2.mo mu-2.in
21 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
23 tmpfiles="$tmpfiles mu-2.tmp mu-2.out"
24 : ${MSGUNFMT=msgunfmt}
25 ${MSGUNFMT} -o mu-2.tmp mu-2.mo
26 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
27 LC_ALL=C tr -d '\r' < mu-2.tmp > mu-2.out
28 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
31 ${DIFF} mu-2.in mu-2.out