• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#! /bin/sh
2. "${srcdir=.}/init.sh"; path_prepend_ . ../src
3
4# Test that bind_textdomain_codeset() works, even when the same message
5# was already looked up for a different codeset.
6
7test -d in-4 || mkdir in-4
8test -d in-4/fr || mkdir in-4/fr
9test -d in-4/fr/LC_MESSAGES || mkdir in-4/fr/LC_MESSAGES
10
11: ${MSGFMT=msgfmt}
12${MSGFMT} -o in-4/fr/LC_MESSAGES/tstprog.mo "$wabs_srcdir"/intl-4.po
13
14# This test works only on systems that have a traditional french locale
15# installed.
16# intl-4.po is actually a German PO file, but only the encoding of the
17# locale matters, not the language. configure has already checked whether
18# a traditional french locale is installed; no need to check also for a
19# traditional german locale.
20: ${LOCALE_FR=fr_FR}
21if test $LOCALE_FR != none; then
22  prepare_locale_ in-4/fr in-4/$LOCALE_FR
23  ../intl-4-prg $LOCALE_FR || Exit 1
24else
25  if test -f /usr/bin/localedef; then
26    echo "Skipping test: no traditional french locale is installed"
27  else
28    echo "Skipping test: no traditional french locale is supported"
29  fi
30  Exit 77
31fi
32
33Exit 0
34