summaryrefslogtreecommitdiff
path: root/tests/test-mbsnrtowcs4.sh
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2008-12-21 14:47:35 +0100
committerBruno Haible <bruno@clisp.org>2008-12-21 14:47:35 +0100
commit66017cb097077232e98eb261d0574a5847a1b650 (patch)
tree9cfc36afcf082cb69737b3acc553d63bcd85d2be /tests/test-mbsnrtowcs4.sh
parent6906a95bfc7fc83e4ffa7ef2f68e377157d926f7 (diff)
downloadgnulib-66017cb097077232e98eb261d0574a5847a1b650.tar.gz
Tests for module 'mbsnrtowcs'.
Diffstat (limited to 'tests/test-mbsnrtowcs4.sh')
-rwxr-xr-xtests/test-mbsnrtowcs4.sh15
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