1#! /bin/sh 2. "${srcdir=.}/init.sh"; path_prepend_ . ../src 3 4# Test ISO C 99 <inttypes.h> format string directives. 5 6cat <<\EOF > mf-12.po 7msgid "" 8msgstr "Content-Type: text/plain; charset=ISO-8859-1\n" 9 10#, c-format 11msgid "File size is: %<PRId64>" 12msgstr "Dateigr��e ist: %<PRId64>" 13 14#, c-format 15msgid "File age is %10<PRIdMAX> microseconds" 16msgstr "Datei ist %10<PRIdMAX> Mikrosekunden alt." 17 18msgid "<PRIXFAST16> errors" 19msgstr "<PRIXFAST16> Fehler" 20EOF 21 22: ${MSGFMT=msgfmt} 23${MSGFMT} -o mf-12.mo mf-12.po || Exit 1 24 25: ${MSGUNFMT=msgunfmt} 26${MSGUNFMT} -o mf-12.tmp mf-12.mo || Exit 1 27LC_ALL=C tr -d '\r' < mf-12.tmp > mf-12.out || Exit 1 28 29cat <<\EOF > mf-12.ok 30msgid "" 31msgstr "Content-Type: text/plain; charset=ISO-8859-1\n" 32 33msgid "<PRIXFAST16> errors" 34msgstr "<PRIXFAST16> Fehler" 35 36#, c-format 37msgid "File size is: %<PRId64>" 38msgstr "Dateigr��e ist: %<PRId64>" 39 40#, c-format 41msgid "File age is %10<PRIdMAX> microseconds" 42msgstr "Datei ist %10<PRIdMAX> Mikrosekunden alt." 43EOF 44 45: ${DIFF=diff} 46${DIFF} mf-12.ok mf-12.out 47result=$? 48 49exit $result 50