annotate tests/test-mbrtowc4.sh @ 17593:d1e383af69e2

manywarnings: remove -Wmudflap * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove -Wmudflap, since it is no longer supported in gcc-4.9-to-be.
author Jim Meyering <meyering@fb.com>
date Thu, 02 Jan 2014 16:55:04 -0800
parents d39a9bdacb69
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
10907
9ad8bcddd5f9 Tests for module 'mbrtowc'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
1 #!/bin/sh
9ad8bcddd5f9 Tests for module 'mbrtowc'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
2
9ad8bcddd5f9 Tests for module 'mbrtowc'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
3 # Test whether a specific GB18030 locale is installed.
11118
d39a9bdacb69 Fix fallback value of LOCALE_ZH_CN.
Bruno Haible <bruno@clisp.org>
parents: 10907
diff changeset
4 : ${LOCALE_ZH_CN=zh_CN.GB18030}
10907
9ad8bcddd5f9 Tests for module 'mbrtowc'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
5 if test $LOCALE_ZH_CN = none; then
9ad8bcddd5f9 Tests for module 'mbrtowc'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
6 if test -f /usr/bin/localedef; then
9ad8bcddd5f9 Tests for module 'mbrtowc'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
7 echo "Skipping test: no transitional chinese locale is installed"
9ad8bcddd5f9 Tests for module 'mbrtowc'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
8 else
9ad8bcddd5f9 Tests for module 'mbrtowc'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
9 echo "Skipping test: no transitional chinese locale is supported"
9ad8bcddd5f9 Tests for module 'mbrtowc'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
10 fi
9ad8bcddd5f9 Tests for module 'mbrtowc'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
11 exit 77
9ad8bcddd5f9 Tests for module 'mbrtowc'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
12 fi
9ad8bcddd5f9 Tests for module 'mbrtowc'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
13
9ad8bcddd5f9 Tests for module 'mbrtowc'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
14 LC_ALL=$LOCALE_ZH_CN \
9ad8bcddd5f9 Tests for module 'mbrtowc'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
15 ./test-mbrtowc${EXEEXT} 4