2 . "${srcdir=.}/init.sh"; path_prepend_ . ../src
4 # Test that on glibc systems, the gettext() results come out in the correct
5 # encoding for locales that differ only in their encoding.
7 # This test works only on glibc systems.
9 test "$GLIBC2" = yes || {
10 echo "Skipping test: not a glibc system"
14 # This test works only on systems that have a de_DE.ISO-8859-1 and
15 # de_DE.UTF-8 locale installed.
16 LC_ALL=de_DE.ISO-8859-1 ../testlocale || {
17 if test -f /usr/bin/localedef; then
18 echo "Skipping test: locale de_DE.ISO-8859-1 not installed"
20 echo "Skipping test: locale de_DE.ISO-8859-1 not supported"
24 LC_ALL=de_DE.UTF-8 ../testlocale || {
25 if test -f /usr/bin/localedef; then
26 echo "Skipping test: locale de_DE.UTF-8 not installed"
28 echo "Skipping test: locale de_DE.UTF-8 not supported"
33 test -d gt-5 || mkdir gt-5
34 test -d gt-5/de_DE || mkdir gt-5/de_DE
35 test -d gt-5/de_DE/LC_MESSAGES || mkdir gt-5/de_DE/LC_MESSAGES
38 ${MSGFMT} -o gt-5/de_DE/LC_MESSAGES/codeset.mo "$abs_srcdir"/gettext-5.po
40 ../gettext-5-prg || exit 1