| 1 |
#!/bin/sh |
| 2 |
|
| 3 |
# Test whether a specific UTF-8 locale is installed. |
| 4 |
: "${LOCALE_EN_UTF8=en_US.UTF-8}" |
| 5 |
: "${LOCALE_FR_UTF8=fr_FR.UTF-8}" |
| 6 |
if test "$LOCALE_EN_UTF8" = none && test $LOCALE_FR_UTF8 = none; then |
| 7 |
if test -f /usr/bin/localedef; then |
| 8 |
echo "Skipping test: no english or french Unicode locale is installed" |
| 9 |
else |
| 10 |
echo "Skipping test: no english or french Unicode locale is supported" |
| 11 |
fi |
| 12 |
exit 77 |
| 13 |
fi |
| 14 |
|
| 15 |
# It's sufficient to test in one of the two locales. |
| 16 |
if test $LOCALE_FR_UTF8 != none; then |
| 17 |
testlocale=$LOCALE_FR_UTF8 |
| 18 |
else |
| 19 |
testlocale="$LOCALE_EN_UTF8" |
| 20 |
fi |
| 21 |
|
| 22 |
LC_ALL="$testlocale" \ |
| 23 |
${CHECKER} ./test-btoc32${EXEEXT} 3 |