view tests/test-mbrtowc4.sh @ 16536:b4afb7c149dc

New module 'cbrtl'. * lib/math.in.h (cbrtl): New declaration. * lib/cbrtl.c: New file. * m4/cbrtl.m4: New file. * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared. (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL, HAVE_DECL_CBRTL. * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL, HAVE_DECL_CBRTL. * modules/cbrtl: New file. * tests/test-math-c++.cc: Check the declaration of cbrtl. * doc/posix-functions/cbrtl.texi: Mention the new module.
author Bruno Haible <bruno@clisp.org>
date Thu, 01 Mar 2012 02:50:14 +0100
parents d39a9bdacb69
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 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-mbrtowc${EXEEXT} 4