1#! /bin/sh 2. "${srcdir=.}/init.sh"; path_prepend_ . ../src 3 4# Test c-format handling. 5 6cat <<EOF >mf-test4.po 7# SOME DESCRIPTIVE TITLE. 8# Copyright (C) YEAR Free Software Foundation, Inc. 9# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. 10# 11#, fuzzy 12msgid "" 13msgstr "" 14"Project-Id-Version: msgfmt test 4\n" 15"PO-Revision-Date: 1996-04-05 19:47+0200\n" 16"Last-Translator: Ulrich Drepper <drepper@gnu.org>\n" 17"Language-Team: test <test@li.org>\n" 18"MIME-Version: 1.0\n" 19"Content-Type: text/plain; charset=ISO-8859-1\n" 20"Content-Transfer-Encoding: 8bit\n" 21# 22#, no-c-format 23msgid "no percent" 24msgstr "but here %d is one" 25# 26#, c-format 27msgid "in the %d normal %c order %s\n" 28msgstr "but %2$c not %3$s here %1$d\n" 29# 30# If no c-format is given no check is wanted, not only if no-c-format is there. 31msgid "This is a string %s" 32msgstr "...but this $s not" 33EOF 34 35: ${MSGFMT=msgfmt} 36${MSGFMT} -o /dev/null mf-test4.po 2> /dev/null 37result=$? 38 39exit $result 40