view tests/test-mbsstr3.sh @ 9630:729b6d4ffac1

Convert c-strcasestr to be more efficient. * modules/c-strcasestr (Files): Use Two-Way, not KMP. (Depends-on): Add c-strcase, remove malloca, strnlen. * tests/test-c-strcasestr.c (main): Enhance test. * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm. Signed-off-by: Eric Blake <ebb9@byu.net>
author Eric Blake <ebb9@byu.net>
date Wed, 16 Jan 2008 20:35:00 -0700
parents 95ebb0f8b658
children
line wrap: on
line source

#!/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 chinese GB18030 locale is installed"
  else
    echo "Skipping test: no chinese GB18030 locale is supported"
  fi
  exit 77
fi

LC_ALL=$LOCALE_ZH_CN \
./test-mbsstr3${EXEEXT}