#!/bin/sh # Test whether a specific GB18030 locale is installed. : $(LOCALE_ZH_CN=zh_CN.GB18030) if test $LOCALE_ZH_CN = none { if test -f /usr/bin/localedef { echo "Skipping test: no transitional chinese locale is installed" } else { echo "Skipping test: no transitional chinese locale is supported" } exit 77 } env LC_ALL=$LOCALE_ZH_CN \ ./test-mbsrtowcs$(EXEEXT) 4