summaryrefslogtreecommitdiffstats
path: root/gettext-tools/tests/gettext-4
blob: aa3332b9a7ee31b81b20c59c3d14dd87896da2ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#! /bin/sh

# Test that bind_textdomain_codeset() works.

tmpfiles=""
trap 'rm -fr $tmpfiles' 1 2 3 15

# This test works only on systems that have a de_DE.ISO-8859-1 locale installed.
LC_ALL=de_DE.ISO-8859-1 ./testlocale || exit 77

tmpfiles="$tmpfiles de_DE"
test -d de_DE || mkdir de_DE
test -d de_DE/LC_MESSAGES || mkdir de_DE/LC_MESSAGES

: ${MSGFMT=msgfmt}
${MSGFMT} -o de_DE/LC_MESSAGES/codeset.mo ${top_srcdir}/tests/gettext-4.po

./gettext-4-prg || exit 1

rm -fr $tmpfiles

exit 0