uchar C++ tests: Fix build error on FreeBSD 12.
[gnulib.git] / tests / test-c32isdigit.sh
blobdf63077bce3ae555cbd4ac903044aa5f0a230ca7
1 #!/bin/sh
3 # Test in the POSIX locale.
4 LC_ALL=C ${CHECKER} ./test-c32isdigit${EXEEXT} 0 || exit 1
5 LC_ALL=POSIX ${CHECKER} ./test-c32isdigit${EXEEXT} 0 || exit 1
7 # Test in an ISO-8859-1 or ISO-8859-15 locale.
8 : ${LOCALE_FR=fr_FR}
9 if test $LOCALE_FR != none; then
10 LC_ALL=$LOCALE_FR \
11 ${CHECKER} ./test-c32isdigit${EXEEXT} 1 \
12 || exit 1
15 # Test whether a specific EUC-JP locale is installed.
16 : ${LOCALE_JA=ja_JP}
17 if test $LOCALE_JA != none; then
18 LC_ALL=$LOCALE_JA \
19 ${CHECKER} ./test-c32isdigit${EXEEXT} 2 \
20 || exit 1
23 # Test whether a specific UTF-8 locale is installed.
24 : ${LOCALE_FR_UTF8=fr_FR.UTF-8}
25 if test $LOCALE_FR_UTF8 != none; then
26 LC_ALL=$LOCALE_FR_UTF8 \
27 ${CHECKER} ./test-c32isdigit${EXEEXT} 3 \
28 || exit 1
31 # Test whether a specific GB18030 locale is installed.
32 : ${LOCALE_ZH_CN=zh_CN.GB18030}
33 if test $LOCALE_ZH_CN != none; then
34 LC_ALL=$LOCALE_ZH_CN \
35 ${CHECKER} ./test-c32isdigit${EXEEXT} 4 \
36 || exit 1
39 exit 0