sigprocmask: Fix configuration failure on Solaris 10 (regr. 2020-07-25).
[gnulib.git] / tests / test-c32rtomb.sh
blob2899297beab4d022667fd889053f114090d5ba72
1 #!/bin/sh
3 # Test in an ISO-8859-1 or ISO-8859-15 locale.
4 : ${LOCALE_FR=fr_FR}
5 if test $LOCALE_FR != none; then
6 LC_ALL=$LOCALE_FR \
7 ${CHECKER} ./test-c32rtomb${EXEEXT} 1 \
8 || exit 1
9 fi
11 # Test whether a specific UTF-8 locale is installed.
12 : ${LOCALE_FR_UTF8=fr_FR.UTF-8}
13 if test $LOCALE_FR_UTF8 != none; then
14 LC_ALL=$LOCALE_FR_UTF8 \
15 ${CHECKER} ./test-c32rtomb${EXEEXT} 2 \
16 || exit 1
19 # Test whether a specific EUC-JP locale is installed.
20 : ${LOCALE_JA=ja_JP}
21 if test $LOCALE_JA != none; then
22 LC_ALL=$LOCALE_JA \
23 ${CHECKER} ./test-c32rtomb${EXEEXT} 3 \
24 || exit 1
27 # Test whether a specific GB18030 locale is installed.
28 : ${LOCALE_ZH_CN=zh_CN.GB18030}
29 if test $LOCALE_ZH_CN != none; then
30 LC_ALL=$LOCALE_ZH_CN \
31 ${CHECKER} ./test-c32rtomb${EXEEXT} 4 \
32 || exit 1
35 # Test in the POSIX locale.
36 LC_ALL=C ${CHECKER} ./test-c32rtomb${EXEEXT} 5 || exit 1
37 LC_ALL=POSIX ${CHECKER} ./test-c32rtomb${EXEEXT} 5 || exit 1
39 exit 0