Hash :
f5eb8cea
Author :
Date :
2020-01-09T16:21:53
c32srtombs: Add tests. * tests/test-c32srtombs.c: New file, based on tests/test-wcsrtombs.c. * tests/test-c32srtombs-1.sh: New file, based on tests/test-wcsrtombs1.sh. * tests/test-c32srtombs-2.sh: New file, based on tests/test-wcsrtombs2.sh. * tests/test-c32srtombs-3.sh: New file, based on tests/test-wcsrtombs3.sh. * tests/test-c32srtombs-4.sh: New file, based on tests/test-wcsrtombs4.sh. * modules/c32srtombs-tests: New file, based on modules/wcsrtombs-tests.
#!/bin/sh
# Test whether a specific GB18030 locale is installed.
: ${LOCALE_ZH_CN=zh_CN.GB18030}
if test $LOCALE_ZH_CN = none; then
if test -f /usr/bin/localedef; then
echo "Skipping test: no transitional chinese locale is installed"
else
echo "Skipping test: no transitional chinese locale is supported"
fi
exit 77
fi
LC_ALL=$LOCALE_ZH_CN \
${CHECKER} ./test-c32srtombs${EXEEXT} 4