2 . "${srcdir=.}/init.sh"; path_prepend_ . ../src
4 # Test that bind_textdomain_codeset() works.
6 # This test works only on systems that have a traditional french locale
8 # gettext-4.po is actually a German PO file, but only the encoding of the
9 # locale matters, not the language. configure has already checked whether
10 # a traditional french locale is installed; no need to check also for a
11 # traditional german locale.
13 { test $LOCALE_FR != none && LC_ALL=$LOCALE_FR ../testlocale; } || {
14 if test -f /usr/bin/localedef; then
15 echo "Skipping test: no traditional french locale is installed"
17 echo "Skipping test: no traditional french locale is supported"
22 test -d gt-4 || mkdir gt-4
23 test -d gt-4/fr || mkdir gt-4/fr
24 test -d gt-4/fr/LC_MESSAGES || mkdir gt-4/fr/LC_MESSAGES
27 ${MSGFMT} -o gt-4/fr/LC_MESSAGES/codeset.mo "$abs_srcdir"/gettext-4.po
29 ../gettext-4-prg $LOCALE_FR || exit 1