msgfilter-sr-latin-1 msgfilter-quote-1 \
msgfmt-1 msgfmt-2 msgfmt-3 msgfmt-4 msgfmt-5 msgfmt-6 msgfmt-7 \
msgfmt-8 msgfmt-9 msgfmt-10 msgfmt-11 msgfmt-12 msgfmt-13 msgfmt-14 \
- msgfmt-15 msgfmt-16 msgfmt-17 msgfmt-18 msgfmt-19 msgfmt-20 \
+ msgfmt-15 msgfmt-16 msgfmt-17 msgfmt-18 msgfmt-19 msgfmt-20 msgfmt-21 \
msgfmt-properties-1 \
msgfmt-tcl-1 msgfmt-tcl-2 \
msgfmt-qt-1 msgfmt-qt-2 \
testdata/dprog.utf-8.d testdata/dprog.utf-8+bom.d \
testdata/dprog.utf-16be.d testdata/dprog.utf-16le.d \
testdata/dprog.utf-32be.d testdata/dprog.utf-32le.d \
+ testdata/mf-21.mo \
testdata/nonascii.pot \
testdata/repo.tar.gz \
testdata/tcltest_pl.po testdata/tcltest_pl.msg \
--- /dev/null
+#! /bin/sh
+. "${srcdir=.}/init.sh"; path_prepend_ . ../src
+
+# Test that MO files are reproducible across GNU gettext versions
+# (because the unit tests of some packages, such as the Translate Toolkit,
+# compare .mo files against expected results).
+
+test -d mf-21 || mkdir mf-21
+test -d mf-21/LC_MESSAGES || mkdir mf-21/LC_MESSAGES
+
+cat <<\EOF > mf-21.po
+msgid "Hello, world!"
+msgstr "Hallo Welt!"
+EOF
+
+: ${MSGFMT=msgfmt}
+${MSGFMT} --endianness=little -o mf-21.mo mf-21.po || Exit 1
+
+cmp "$wabs_srcdir"/testdata/mf-21.mo mf-21.mo || Exit 1
+
+exit 0