#! /bin/sh . "${srcdir=.}/init.sh"; path_prepend_ . ../src # Test ISO C 99 format string directives. cat <<\EOF > mf-12.po msgid "" msgstr "Content-Type: text/plain; charset=ISO-8859-1\n" #, c-format msgid "File size is: %" msgstr "Dateigröße ist: %" #, c-format msgid "File age is %10 microseconds" msgstr "Datei ist %10 Mikrosekunden alt." msgid " errors" msgstr " Fehler" EOF : ${MSGFMT=msgfmt} ${MSGFMT} -o mf-12.mo mf-12.po || exit 1 : ${MSGUNFMT=msgunfmt} ${MSGUNFMT} -o mf-12.tmp mf-12.mo || exit 1 LC_ALL=C tr -d '\r' < mf-12.tmp > mf-12.out || exit 1 cat <<\EOF > mf-12.ok msgid "" msgstr "Content-Type: text/plain; charset=ISO-8859-1\n" msgid " errors" msgstr " Fehler" #, c-format msgid "File size is: %" msgstr "Dateigröße ist: %" #, c-format msgid "File age is %10 microseconds" msgstr "Datei ist %10 Mikrosekunden alt." EOF : ${DIFF=diff} ${DIFF} mf-12.ok mf-12.out result=$? exit $result