diff options
author | Bruno Haible <bruno@clisp.org> | 2008-12-21 14:47:35 +0100 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2008-12-21 14:47:35 +0100 |
commit | 66017cb097077232e98eb261d0574a5847a1b650 (patch) | |
tree | 9cfc36afcf082cb69737b3acc553d63bcd85d2be /tests/test-mbsnrtowcs4.sh | |
parent | 6906a95bfc7fc83e4ffa7ef2f68e377157d926f7 (diff) | |
download | gnulib-66017cb097077232e98eb261d0574a5847a1b650.tar.gz |
Tests for module 'mbsnrtowcs'.
Diffstat (limited to 'tests/test-mbsnrtowcs4.sh')
-rwxr-xr-x | tests/test-mbsnrtowcs4.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/test-mbsnrtowcs4.sh b/tests/test-mbsnrtowcs4.sh new file mode 100755 index 0000000000..49e07b3f1a --- /dev/null +++ b/tests/test-mbsnrtowcs4.sh @@ -0,0 +1,15 @@ +#!/bin/sh + +# Test whether a specific GB18030 locale is installed. +: ${LOCALE_ZH_CN=zh_CN} +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 \ +./test-mbsnrtowcs${EXEEXT} 4 |