No empty .Rs/.Re
[netbsd-mini2440.git] / gnu / dist / gettext / gettext-tools / tests / msgfmt-3
bloba70a7d7d0889720da1f8df478e46fe6716aa381a
1 #! /bin/sh
3 # Test that an empty header entry is OK.
5 tmpfiles=""
6 trap 'rm -fr $tmpfiles' 1 2 3 15
8 tmpfiles="$tmpfiles mf-test3.po"
9 cat <<EOF >mf-test3.po
11 # xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
12 # xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
13 # xxxxxxxxxxxxxxxxxxxx
15 # xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
16 # xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
17 # xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
18 # xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
19 msgid ""
20 msgstr ""
21 EOF
23 tmpfiles="$tmpfiles mftest3.mo mftest3.err"
24 : ${MSGFMT=msgfmt}
25 LC_MESSAGES=C LC_ALL= \
26 ${MSGFMT} mf-test3.po -o mftest3.mo >mftest3.err 2>&1
27 result=$?
28 cat mftest3.err | grep -v 'warning: Charset' | grep -v '^ '
29 test $result = 0 || { rm -fr $tmpfiles; exit 1; }
31 test ! -f mftest3.mo
32 result=$?
34 rm -fr $tmpfiles
36 exit $result