* m4/locale-en.m4: New file, based on m4/locale-fr.m4.
* m4/locale-ar.m4 (gt_LOCALE_AR): Update comments.
* m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
* m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
* m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
* m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
* modules/btoc32-tests (Files): Add m4/locale-en.m4.
(configure.ac): Invoke gt_LOCALE_EN_UTF8.
(Makefile.am): Set LOCALE_EN_UTF8 in TESTS_ENVIRONMENT.
* modules/btowc-tests: Likewise.
* modules/c32isalnum-tests: Likewise.
* modules/c32isalpha-tests: Likewise.
* modules/c32isblank-tests: Likewise.
* modules/c32iscntrl-tests: Likewise.
* modules/c32isdigit-tests: Likewise.
* modules/c32isgraph-tests: Likewise.
* modules/c32islower-tests: Likewise.
* modules/c32isprint-tests: Likewise.
* modules/c32ispunct-tests: Likewise.
* modules/c32isspace-tests: Likewise.
* modules/c32isupper-tests: Likewise.
* modules/c32isxdigit-tests: Likewise.
* modules/c32rtomb-tests: Likewise.
* modules/c32snrtombs-tests: Likewise.
* modules/c32srtombs-tests: Likewise.
* modules/c32stombs-tests: Likewise.
* modules/c32tolower-tests: Likewise.
* modules/c32toupper-tests: Likewise.
* modules/fnmatch-tests: Likewise.
* modules/iswdigit-tests: Likewise.
* modules/iswxdigit-tests: Likewise.
* modules/mbmemcasecmp-tests: Likewise.
* modules/mbmemcasecoll-tests: Likewise.
* modules/mbrlen-tests: Likewise.
* modules/mbrtoc16-tests: Likewise.
* modules/mbrtoc32-tests: Likewise.
* modules/mbrtowc-tests: Likewise.
* modules/mbscasestr-tests: Likewise.
* modules/mbscspn-tests: Likewise.
* modules/mbsinit-tests: Likewise.
* modules/mbslen-tests: Likewise.
* modules/mbsnlen-tests: Likewise.
* modules/mbsnrtoc32s-tests: Likewise.
* modules/mbsnrtowcs-tests: Likewise.
* modules/mbspbrk-tests: Likewise.
* modules/mbsrtoc32s-tests: Likewise.
* modules/mbsrtowcs-tests: Likewise.
* modules/mbsspn-tests: Likewise.
* modules/mbsstr-tests: Likewise.
* modules/mbstoc32s-tests: Likewise.
* modules/mbstowcs-tests: Likewise.
* modules/mcel-tests: Likewise.
* modules/trim-tests: Likewise.
* modules/unicodeio-tests: Likewise.
* modules/wcrtomb-tests: Likewise.
* modules/wcsnrtombs-tests: Likewise.
* modules/wcsrtombs-tests: Likewise.
* tests/test-btoc32-3.sh: If LOCALE_FR_UTF8 is 'none', try
LOCALE_EN_UTF8 instead.
* tests/test-btowc-3.sh: Likewise.
* tests/test-c32isalnum.sh: Likewise.
* tests/test-c32isalpha.sh: Likewise.
* tests/test-c32isblank.sh: Likewise.
* tests/test-c32iscntrl.sh: Likewise.
* tests/test-c32isdigit.sh: Likewise.
* tests/test-c32isgraph.sh: Likewise.
* tests/test-c32islower.sh: Likewise.
* tests/test-c32isprint.sh: Likewise.
* tests/test-c32ispunct.sh: Likewise.
* tests/test-c32isspace.sh: Likewise.
* tests/test-c32isupper.sh: Likewise.
* tests/test-c32isxdigit.sh: Likewise.
* tests/test-c32rtomb.sh: Likewise.
* tests/test-c32snrtombs-3.sh: Likewise.
* tests/test-c32srtombs-3.sh: Likewise.
* tests/test-c32stombs-3.sh: Likewise.
* tests/test-c32tolower.sh: Likewise.
* tests/test-c32toupper.sh: Likewise.
* tests/test-fnmatch-3.sh: Likewise.
* tests/test-iswdigit.sh: Likewise.
* tests/test-iswxdigit.sh: Likewise.
* tests/test-mbmemcasecmp-3.sh: Likewise.
* tests/test-mbmemcasecoll-3.sh: Likewise.
* tests/test-mbrlen-3.sh: Likewise.
* tests/test-mbrtoc16-3.sh: Likewise.
* tests/test-mbrtoc32-3.sh: Likewise.
* tests/test-mbrtowc-3.sh: Likewise.
* tests/test-mbscasestr2.sh: Likewise.
* tests/test-mbscspn.sh: Likewise.
* tests/test-mbsinit.sh: Likewise.
* tests/test-mbslen.sh: Likewise.
* tests/test-mbsnlen.sh: Likewise.
* tests/test-mbsnrtoc32s-3.sh: Likewise.
* tests/test-mbsnrtowcs-3.sh: Likewise.
* tests/test-mbspbrk.sh: Likewise.
* tests/test-mbsrtoc32s-3.sh: Likewise.
* tests/test-mbsrtowcs-3.sh: Likewise.
* tests/test-mbsspn.sh: Likewise.
* tests/test-mbsstr2.sh: Likewise.
* tests/test-mbstoc32s-3.sh: Likewise.
* tests/test-mbstowcs-3.sh: Likewise.
* tests/test-mcel-3.sh: Likewise.
* tests/test-trim2.sh: Likewise.
* tests/test-unicodeio2.sh: Likewise.
* tests/test-wcrtomb.sh: Likewise.
* tests/test-wcsnrtombs-3.sh: Likewise.
* tests/test-wcsrtombs-3.sh: Likewise.
+2024-08-31 Bruno Haible <bruno@clisp.org>
+
+ tests: Strengthen LC_CTYPE tests on OpenBSD, Android, Haiku.
+ * m4/locale-en.m4: New file, based on m4/locale-fr.m4.
+ * m4/locale-ar.m4 (gt_LOCALE_AR): Update comments.
+ * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
+ * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
+ * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
+ * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
+ * modules/btoc32-tests (Files): Add m4/locale-en.m4.
+ (configure.ac): Invoke gt_LOCALE_EN_UTF8.
+ (Makefile.am): Set LOCALE_EN_UTF8 in TESTS_ENVIRONMENT.
+ * modules/btowc-tests: Likewise.
+ * modules/c32isalnum-tests: Likewise.
+ * modules/c32isalpha-tests: Likewise.
+ * modules/c32isblank-tests: Likewise.
+ * modules/c32iscntrl-tests: Likewise.
+ * modules/c32isdigit-tests: Likewise.
+ * modules/c32isgraph-tests: Likewise.
+ * modules/c32islower-tests: Likewise.
+ * modules/c32isprint-tests: Likewise.
+ * modules/c32ispunct-tests: Likewise.
+ * modules/c32isspace-tests: Likewise.
+ * modules/c32isupper-tests: Likewise.
+ * modules/c32isxdigit-tests: Likewise.
+ * modules/c32rtomb-tests: Likewise.
+ * modules/c32snrtombs-tests: Likewise.
+ * modules/c32srtombs-tests: Likewise.
+ * modules/c32stombs-tests: Likewise.
+ * modules/c32tolower-tests: Likewise.
+ * modules/c32toupper-tests: Likewise.
+ * modules/fnmatch-tests: Likewise.
+ * modules/iswdigit-tests: Likewise.
+ * modules/iswxdigit-tests: Likewise.
+ * modules/mbmemcasecmp-tests: Likewise.
+ * modules/mbmemcasecoll-tests: Likewise.
+ * modules/mbrlen-tests: Likewise.
+ * modules/mbrtoc16-tests: Likewise.
+ * modules/mbrtoc32-tests: Likewise.
+ * modules/mbrtowc-tests: Likewise.
+ * modules/mbscasestr-tests: Likewise.
+ * modules/mbscspn-tests: Likewise.
+ * modules/mbsinit-tests: Likewise.
+ * modules/mbslen-tests: Likewise.
+ * modules/mbsnlen-tests: Likewise.
+ * modules/mbsnrtoc32s-tests: Likewise.
+ * modules/mbsnrtowcs-tests: Likewise.
+ * modules/mbspbrk-tests: Likewise.
+ * modules/mbsrtoc32s-tests: Likewise.
+ * modules/mbsrtowcs-tests: Likewise.
+ * modules/mbsspn-tests: Likewise.
+ * modules/mbsstr-tests: Likewise.
+ * modules/mbstoc32s-tests: Likewise.
+ * modules/mbstowcs-tests: Likewise.
+ * modules/mcel-tests: Likewise.
+ * modules/trim-tests: Likewise.
+ * modules/unicodeio-tests: Likewise.
+ * modules/wcrtomb-tests: Likewise.
+ * modules/wcsnrtombs-tests: Likewise.
+ * modules/wcsrtombs-tests: Likewise.
+ * tests/test-btoc32-3.sh: If LOCALE_FR_UTF8 is 'none', try
+ LOCALE_EN_UTF8 instead.
+ * tests/test-btowc-3.sh: Likewise.
+ * tests/test-c32isalnum.sh: Likewise.
+ * tests/test-c32isalpha.sh: Likewise.
+ * tests/test-c32isblank.sh: Likewise.
+ * tests/test-c32iscntrl.sh: Likewise.
+ * tests/test-c32isdigit.sh: Likewise.
+ * tests/test-c32isgraph.sh: Likewise.
+ * tests/test-c32islower.sh: Likewise.
+ * tests/test-c32isprint.sh: Likewise.
+ * tests/test-c32ispunct.sh: Likewise.
+ * tests/test-c32isspace.sh: Likewise.
+ * tests/test-c32isupper.sh: Likewise.
+ * tests/test-c32isxdigit.sh: Likewise.
+ * tests/test-c32rtomb.sh: Likewise.
+ * tests/test-c32snrtombs-3.sh: Likewise.
+ * tests/test-c32srtombs-3.sh: Likewise.
+ * tests/test-c32stombs-3.sh: Likewise.
+ * tests/test-c32tolower.sh: Likewise.
+ * tests/test-c32toupper.sh: Likewise.
+ * tests/test-fnmatch-3.sh: Likewise.
+ * tests/test-iswdigit.sh: Likewise.
+ * tests/test-iswxdigit.sh: Likewise.
+ * tests/test-mbmemcasecmp-3.sh: Likewise.
+ * tests/test-mbmemcasecoll-3.sh: Likewise.
+ * tests/test-mbrlen-3.sh: Likewise.
+ * tests/test-mbrtoc16-3.sh: Likewise.
+ * tests/test-mbrtoc32-3.sh: Likewise.
+ * tests/test-mbrtowc-3.sh: Likewise.
+ * tests/test-mbscasestr2.sh: Likewise.
+ * tests/test-mbscspn.sh: Likewise.
+ * tests/test-mbsinit.sh: Likewise.
+ * tests/test-mbslen.sh: Likewise.
+ * tests/test-mbsnlen.sh: Likewise.
+ * tests/test-mbsnrtoc32s-3.sh: Likewise.
+ * tests/test-mbsnrtowcs-3.sh: Likewise.
+ * tests/test-mbspbrk.sh: Likewise.
+ * tests/test-mbsrtoc32s-3.sh: Likewise.
+ * tests/test-mbsrtowcs-3.sh: Likewise.
+ * tests/test-mbsspn.sh: Likewise.
+ * tests/test-mbsstr2.sh: Likewise.
+ * tests/test-mbstoc32s-3.sh: Likewise.
+ * tests/test-mbstowcs-3.sh: Likewise.
+ * tests/test-mcel-3.sh: Likewise.
+ * tests/test-trim2.sh: Likewise.
+ * tests/test-unicodeio2.sh: Likewise.
+ * tests/test-wcrtomb.sh: Likewise.
+ * tests/test-wcsnrtombs-3.sh: Likewise.
+ * tests/test-wcsrtombs-3.sh: Likewise.
+
2024-08-31 Bruno Haible <bruno@clisp.org>
trim, unicodeio tests: Fix module description.
# locale-ar.m4
-# serial 11
+# serial 12
dnl Copyright (C) 2003, 2005-2024 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
if AC_TRY_EVAL([ac_link]) && test -s conftest$ac_exeext; then
case "$host_os" in
# Handle native Windows specially, because there setlocale() interprets
- # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
+ # "ar" or "ara" as "Arabic" or "Arabic_Saudi Arabia.1256",
+ # "en" or "eng" as "English" or "English_United States.1252",
# "fr" or "fra" as "French" or "French_France.1252",
# "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
- # "ja" as "Japanese" or "Japanese_Japan.932",
+ # "ja" or "jpn" as "Japanese" or "Japanese_Japan.932",
# and similar.
mingw* | windows*)
# Note that on native Windows, the Arabic locale is
--- /dev/null
+# locale-en.m4
+# serial 1
+dnl Copyright (C) 2003-2024 Free Software Foundation, Inc.
+dnl This file is free software; the Free Software Foundation
+dnl gives unlimited permission to copy and/or distribute it,
+dnl with or without modifications, as long as this notice is preserved.
+
+dnl From Bruno Haible.
+
+dnl Determine the name of an English (or American English) locale with
+dnl UTF-8 encoding.
+AC_DEFUN_ONCE([gt_LOCALE_EN_UTF8],
+[
+ AC_REQUIRE([AC_CANONICAL_HOST])
+ AC_REQUIRE([AM_LANGINFO_CODESET])
+ AC_CACHE_CHECK([for an english Unicode locale], [gt_cv_locale_en_utf8], [
+ case "$host_os" in
+ *-musl* | midipix*)
+ dnl On musl libc, all kinds of ll_CC.UTF-8 locales exist, even without
+ dnl any locale file on disk. But they are effectively equivalent to the
+ dnl C.UTF-8 locale, except for locale categories (such as LC_MESSSAGES)
+ dnl for which localizations (.mo files) have been installed.
+ gt_cv_locale_en_utf8=en_US.UTF-8
+ ;;
+ *)
+ AC_LANG_CONFTEST([AC_LANG_SOURCE([[
+#include <locale.h>
+#include <time.h>
+#if HAVE_LANGINFO_CODESET
+# include <langinfo.h>
+#endif
+#include <stdlib.h>
+#include <string.h>
+struct tm t;
+char buf[16];
+int main () {
+ /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
+ imitates locale dependent behaviour by looking at the environment
+ variables, and all locales use the UTF-8 encoding. */
+#if !(defined __BEOS__ || defined __HAIKU__)
+ /* Check whether the given locale name is recognized by the system. */
+# if defined _WIN32 && !defined __CYGWIN__
+ /* On native Windows, setlocale(category, "") looks at the system settings,
+ not at the environment variables. Also, when an encoding suffix such
+ as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
+ category of the locale to "C". */
+ if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
+ || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
+ return 1;
+# else
+ if (setlocale (LC_ALL, "") == NULL) return 1;
+# endif
+ /* Check whether nl_langinfo(CODESET) is "UTF-8" or equivalent. */
+# if HAVE_LANGINFO_CODESET
+ {
+ const char *cs = nl_langinfo (CODESET);
+ if (!(strcmp (cs, "UTF-8") == 0 || strcmp (cs, "UTF8") == 0
+ || strcmp (cs, "utf-8") == 0 || strcmp (cs, "utf8") == 0))
+ return 1;
+ }
+# endif
+# ifdef __CYGWIN__
+ /* On Cygwin, avoid locale names without encoding suffix, because the
+ locale_charset() function relies on the encoding suffix. Note that
+ LC_ALL is set on the command line. */
+ if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
+# endif
+ /* Check the third month name. */
+ t.tm_year = 1975 - 1900; t.tm_mon = 3 - 1; t.tm_mday = 24;
+ if (strftime (buf, sizeof (buf), "%B", &t) < 5 || strcmp (buf, "March") != 0)
+ return 1;
+#endif
+#if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
+ /* Check whether the decimal separator is a dot. */
+ if (localeconv () ->decimal_point[0] != '.') return 1;
+#endif
+ return 0;
+}
+ ]])])
+ if AC_TRY_EVAL([ac_link]) && test -s conftest$ac_exeext; then
+ case "$host_os" in
+ # Handle native Windows specially, because there setlocale() interprets
+ # "ar" or "ara" as "Arabic" or "Arabic_Saudi Arabia.1256",
+ # "en" or "eng" as "English" or "English_United States.1252",
+ # "fr" or "fra" as "French" or "French_France.1252",
+ # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
+ # "ja" or "jpn" as "Japanese" or "Japanese_Japan.932",
+ # and similar.
+ mingw* | windows*)
+ # Test for the hypothetical native Windows locale name.
+ if (LC_ALL='English_United States.65001' LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
+ gt_cv_locale_en_utf8='English_United States.65001'
+ else
+ # None found.
+ gt_cv_locale_en_utf8=none
+ fi
+ ;;
+ *)
+ # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
+ # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
+ # configure script would override the LC_ALL setting. Likewise for
+ # LC_CTYPE, which is also set at the beginning of the configure script.
+ # Test for the locale name with explicit encoding suffix first
+ # (this is necessary on Haiku).
+ if (LC_ALL=en_US.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
+ gt_cv_locale_en_utf8=en_US.UTF-8
+ else
+ # Test for the locale name without encoding suffix.
+ if (LC_ALL=en_US LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
+ gt_cv_locale_en_utf8=en_US
+ else
+ # Test for the Solaris 10 locale name.
+ if (LC_ALL=en.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
+ gt_cv_locale_en_utf8=en.UTF-8
+ else
+ # None found.
+ gt_cv_locale_en_utf8=none
+ fi
+ fi
+ fi
+ ;;
+ esac
+ fi
+ rm -fr conftest*
+ ;;
+ esac
+ ])
+ LOCALE_EN_UTF8="$gt_cv_locale_en_utf8"
+ case "$LOCALE_EN_UTF8" in #(
+ '' | *[[\"\$\'*@<:@]]*)
+ dnl The empty value occurs when the conftest.c program above could not
+ dnl be compiled. The other values might cause trouble with sh or make.
+ AC_MSG_WARN([invalid locale "$LOCALE_EN_UTF8"; assuming "none"])
+ LOCALE_EN_UTF8=none;;
+ esac
+ AC_SUBST([LOCALE_EN_UTF8])
+])
# locale-fr.m4
-# serial 23
+# serial 24
dnl Copyright (C) 2003, 2005-2024 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
# if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
/* Check whether the decimal separator is a comma.
- On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
- are nl_langinfo(RADIXCHAR) are both ".". */
+ On NetBSD 3.0 in the fr_FR.ISO8859-1 locale
+ and on Haiku in the fr_FR.UTF-8 locale,
+ localeconv()->decimal_point are nl_langinfo(RADIXCHAR) are both ".". */
if (localeconv () ->decimal_point[0] != ',') return 1;
# endif
return 0;
if AC_TRY_EVAL([ac_link]) && test -s conftest$ac_exeext; then
case "$host_os" in
# Handle native Windows specially, because there setlocale() interprets
- # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
+ # "ar" or "ara" as "Arabic" or "Arabic_Saudi Arabia.1256",
+ # "en" or "eng" as "English" or "English_United States.1252",
# "fr" or "fra" as "French" or "French_France.1252",
# "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
- # "ja" as "Japanese" or "Japanese_Japan.932",
+ # "ja" or "jpn" as "Japanese" or "Japanese_Japan.932",
# and similar.
mingw* | windows*)
# Test for the native Windows locale name.
#endif
#if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
/* Check whether the decimal separator is a comma.
- On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
- are nl_langinfo(RADIXCHAR) are both ".". */
+ On NetBSD 3.0 in the fr_FR.ISO8859-1 locale
+ and on Haiku in the fr_FR.UTF-8 locale,
+ localeconv()->decimal_point are nl_langinfo(RADIXCHAR) are both ".". */
if (localeconv () ->decimal_point[0] != ',') return 1;
#endif
return 0;
if AC_TRY_EVAL([ac_link]) && test -s conftest$ac_exeext; then
case "$host_os" in
# Handle native Windows specially, because there setlocale() interprets
- # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
+ # "ar" or "ara" as "Arabic" or "Arabic_Saudi Arabia.1256",
+ # "en" or "eng" as "English" or "English_United States.1252",
# "fr" or "fra" as "French" or "French_France.1252",
# "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
- # "ja" as "Japanese" or "Japanese_Japan.932",
+ # "ja" or "jpn" as "Japanese" or "Japanese_Japan.932",
# and similar.
mingw* | windows*)
# Test for the hypothetical native Windows locale name.
# locale-ja.m4
-# serial 18
+# serial 19
dnl Copyright (C) 2003, 2005-2024 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
if AC_TRY_EVAL([ac_link]) && test -s conftest$ac_exeext; then
case "$host_os" in
# Handle native Windows specially, because there setlocale() interprets
- # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
+ # "ar" or "ara" as "Arabic" or "Arabic_Saudi Arabia.1256",
+ # "en" or "eng" as "English" or "English_United States.1252",
# "fr" or "fra" as "French" or "French_France.1252",
# "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
- # "ja" as "Japanese" or "Japanese_Japan.932",
+ # "ja" or "jpn" as "Japanese" or "Japanese_Japan.932",
# and similar.
mingw* | windows*)
# Note that on native Windows, the Japanese locale is
# locale-tr.m4
-# serial 15
+# serial 16
dnl Copyright (C) 2003, 2005-2024 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
if AC_TRY_EVAL([ac_link]) && test -s conftest$ac_exeext; then
case "$host_os" in
# Handle native Windows specially, because there setlocale() interprets
- # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
+ # "ar" or "ara" as "Arabic" or "Arabic_Saudi Arabia.1256",
+ # "en" or "eng" as "English" or "English_United States.1252",
# "fr" or "fra" as "French" or "French_France.1252",
# "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
- # "ja" as "Japanese" or "Japanese_Japan.932",
+ # "ja" or "jpn" as "Japanese" or "Japanese_Japan.932",
# and similar.
mingw* | windows*)
# Test for the hypothetical native Windows locale name.
# locale-zh.m4
-# serial 19
+# serial 20
dnl Copyright (C) 2003, 2005-2024 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
if AC_TRY_EVAL([ac_link]) && test -s conftest$ac_exeext; then
case "$host_os" in
# Handle native Windows specially, because there setlocale() interprets
- # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
+ # "ar" or "ara" as "Arabic" or "Arabic_Saudi Arabia.1256",
+ # "en" or "eng" as "English" or "English_United States.1252",
# "fr" or "fra" as "French" or "French_France.1252",
# "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
- # "ja" as "Japanese" or "Japanese_Japan.932",
+ # "ja" or "jpn" as "Japanese" or "Japanese_Japan.932",
# and similar.
mingw* | windows*)
# Test for the hypothetical native Windows locale name.
tests/test-btoc32.c
tests/signature.h
tests/macros.h
+m4/locale-en.m4
m4/locale-fr.m4
m4/codeset.m4
setlocale
configure.ac:
+gt_LOCALE_EN_UTF8
gt_LOCALE_FR
gt_LOCALE_FR_UTF8
Makefile.am:
TESTS += test-btoc32-1.sh test-btoc32-2.sh test-btoc32-3.sh
-TESTS_ENVIRONMENT += LOCALE_FR='@LOCALE_FR@' LOCALE_FR_UTF8='@LOCALE_FR_UTF8@'
+TESTS_ENVIRONMENT += \
+ LOCALE_EN_UTF8='@LOCALE_EN_UTF8@' \
+ LOCALE_FR='@LOCALE_FR@' \
+ LOCALE_FR_UTF8='@LOCALE_FR_UTF8@'
check_PROGRAMS += test-btoc32
test_btoc32_LDADD = $(LDADD) $(LIBUNISTRING) $(SETLOCALE_LIB) $(LIBC32CONV)
tests/test-btowc.c
tests/signature.h
tests/macros.h
+m4/locale-en.m4
m4/locale-fr.m4
m4/codeset.m4
setlocale
configure.ac:
+gt_LOCALE_EN_UTF8
gt_LOCALE_FR
gt_LOCALE_FR_UTF8
Makefile.am:
TESTS += test-btowc-1.sh test-btowc-2.sh test-btowc-3.sh
-TESTS_ENVIRONMENT += LOCALE_FR='@LOCALE_FR@' LOCALE_FR_UTF8='@LOCALE_FR_UTF8@'
+TESTS_ENVIRONMENT += \
+ LOCALE_EN_UTF8='@LOCALE_EN_UTF8@' \
+ LOCALE_FR='@LOCALE_FR@' \
+ LOCALE_FR_UTF8='@LOCALE_FR_UTF8@'
check_PROGRAMS += test-btowc
test_btowc_LDADD = $(LDADD) $(SETLOCALE_LIB)
tests/test-c32isalnum.c
tests/signature.h
tests/macros.h
+m4/locale-en.m4
m4/locale-fr.m4
m4/locale-ja.m4
m4/locale-zh.m4
setlocale
configure.ac:
+gt_LOCALE_EN_UTF8
gt_LOCALE_FR
gt_LOCALE_FR_UTF8
gt_LOCALE_JA
Makefile.am:
TESTS += test-c32isalnum.sh
TESTS_ENVIRONMENT += \
+ LOCALE_EN_UTF8='@LOCALE_EN_UTF8@' \
LOCALE_FR='@LOCALE_FR@' \
LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' \
LOCALE_JA='@LOCALE_JA@' \
tests/test-c32isalpha.c
tests/signature.h
tests/macros.h
+m4/locale-en.m4
m4/locale-fr.m4
m4/locale-ja.m4
m4/locale-zh.m4
setlocale
configure.ac:
+gt_LOCALE_EN_UTF8
gt_LOCALE_FR
gt_LOCALE_FR_UTF8
gt_LOCALE_JA
Makefile.am:
TESTS += test-c32isalpha.sh
TESTS_ENVIRONMENT += \
+ LOCALE_EN_UTF8='@LOCALE_EN_UTF8@' \
LOCALE_FR='@LOCALE_FR@' \
LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' \
LOCALE_JA='@LOCALE_JA@' \
tests/test-c32isblank.c
tests/signature.h
tests/macros.h
+m4/locale-en.m4
m4/locale-fr.m4
m4/locale-ja.m4
m4/locale-zh.m4
setlocale
configure.ac:
+gt_LOCALE_EN_UTF8
gt_LOCALE_FR
gt_LOCALE_FR_UTF8
gt_LOCALE_JA
Makefile.am:
TESTS += test-c32isblank.sh
TESTS_ENVIRONMENT += \
+ LOCALE_EN_UTF8='@LOCALE_EN_UTF8@' \
LOCALE_FR='@LOCALE_FR@' \
LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' \
LOCALE_JA='@LOCALE_JA@' \
tests/test-c32iscntrl.c
tests/signature.h
tests/macros.h
+m4/locale-en.m4
m4/locale-fr.m4
m4/locale-ja.m4
m4/locale-zh.m4
setlocale
configure.ac:
+gt_LOCALE_EN_UTF8
gt_LOCALE_FR
gt_LOCALE_FR_UTF8
gt_LOCALE_JA
Makefile.am:
TESTS += test-c32iscntrl.sh
TESTS_ENVIRONMENT += \
+ LOCALE_EN_UTF8='@LOCALE_EN_UTF8@' \
LOCALE_FR='@LOCALE_FR@' \
LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' \
LOCALE_JA='@LOCALE_JA@' \
tests/test-c32isdigit.c
tests/signature.h
tests/macros.h
+m4/locale-en.m4
m4/locale-fr.m4
m4/locale-ja.m4
m4/locale-zh.m4
setlocale
configure.ac:
+gt_LOCALE_EN_UTF8
gt_LOCALE_FR
gt_LOCALE_FR_UTF8
gt_LOCALE_JA
Makefile.am:
TESTS += test-c32isdigit.sh
TESTS_ENVIRONMENT += \
+ LOCALE_EN_UTF8='@LOCALE_EN_UTF8@' \
LOCALE_FR='@LOCALE_FR@' \
LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' \
LOCALE_JA='@LOCALE_JA@' \
tests/test-c32isgraph.c
tests/signature.h
tests/macros.h
+m4/locale-en.m4
m4/locale-fr.m4
m4/locale-ja.m4
m4/locale-zh.m4
setlocale
configure.ac:
+gt_LOCALE_EN_UTF8
gt_LOCALE_FR
gt_LOCALE_FR_UTF8
gt_LOCALE_JA
Makefile.am:
TESTS += test-c32isgraph.sh
TESTS_ENVIRONMENT += \
+ LOCALE_EN_UTF8='@LOCALE_EN_UTF8@' \
LOCALE_FR='@LOCALE_FR@' \
LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' \
LOCALE_JA='@LOCALE_JA@' \
tests/test-c32islower.c
tests/signature.h
tests/macros.h
+m4/locale-en.m4
m4/locale-fr.m4
m4/locale-ja.m4
m4/locale-zh.m4
setlocale
configure.ac:
+gt_LOCALE_EN_UTF8
gt_LOCALE_FR
gt_LOCALE_FR_UTF8
gt_LOCALE_JA
Makefile.am:
TESTS += test-c32islower.sh
TESTS_ENVIRONMENT += \
+ LOCALE_EN_UTF8='@LOCALE_EN_UTF8@' \
LOCALE_FR='@LOCALE_FR@' \
LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' \
LOCALE_JA='@LOCALE_JA@' \
tests/test-c32isprint.c
tests/signature.h
tests/macros.h
+m4/locale-en.m4
m4/locale-fr.m4
m4/locale-ja.m4
m4/locale-zh.m4
setlocale
configure.ac:
+gt_LOCALE_EN_UTF8
gt_LOCALE_FR
gt_LOCALE_FR_UTF8
gt_LOCALE_JA
Makefile.am:
TESTS += test-c32isprint.sh
TESTS_ENVIRONMENT += \
+ LOCALE_EN_UTF8='@LOCALE_EN_UTF8@' \
LOCALE_FR='@LOCALE_FR@' \
LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' \
LOCALE_JA='@LOCALE_JA@' \
tests/test-c32ispunct.c
tests/signature.h
tests/macros.h
+m4/locale-en.m4
m4/locale-fr.m4
m4/locale-ja.m4
m4/locale-zh.m4
setlocale
configure.ac:
+gt_LOCALE_EN_UTF8
gt_LOCALE_FR
gt_LOCALE_FR_UTF8
gt_LOCALE_JA
Makefile.am:
TESTS += test-c32ispunct.sh
TESTS_ENVIRONMENT += \
+ LOCALE_EN_UTF8='@LOCALE_EN_UTF8@' \
LOCALE_FR='@LOCALE_FR@' \
LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' \
LOCALE_JA='@LOCALE_JA@' \
tests/test-c32isspace.c
tests/signature.h
tests/macros.h
+m4/locale-en.m4
m4/locale-fr.m4
m4/locale-ja.m4
m4/locale-zh.m4
setlocale
configure.ac:
+gt_LOCALE_EN_UTF8
gt_LOCALE_FR
gt_LOCALE_FR_UTF8
gt_LOCALE_JA
Makefile.am:
TESTS += test-c32isspace.sh
TESTS_ENVIRONMENT += \
+ LOCALE_EN_UTF8='@LOCALE_EN_UTF8@' \
LOCALE_FR='@LOCALE_FR@' \
LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' \
LOCALE_JA='@LOCALE_JA@' \
tests/test-c32isupper.c
tests/signature.h
tests/macros.h
+m4/locale-en.m4
m4/locale-fr.m4
m4/locale-ja.m4
m4/locale-zh.m4
setlocale
configure.ac:
+gt_LOCALE_EN_UTF8
gt_LOCALE_FR
gt_LOCALE_FR_UTF8
gt_LOCALE_JA
Makefile.am:
TESTS += test-c32isupper.sh
TESTS_ENVIRONMENT += \
+ LOCALE_EN_UTF8='@LOCALE_EN_UTF8@' \
LOCALE_FR='@LOCALE_FR@' \
LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' \
LOCALE_JA='@LOCALE_JA@' \
tests/test-c32isxdigit.c
tests/signature.h
tests/macros.h
+m4/locale-en.m4
m4/locale-fr.m4
m4/locale-ja.m4
m4/locale-zh.m4
setlocale
configure.ac:
+gt_LOCALE_EN_UTF8
gt_LOCALE_FR
gt_LOCALE_FR_UTF8
gt_LOCALE_JA
Makefile.am:
TESTS += test-c32isxdigit.sh
TESTS_ENVIRONMENT += \
+ LOCALE_EN_UTF8='@LOCALE_EN_UTF8@' \
LOCALE_FR='@LOCALE_FR@' \
LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' \
LOCALE_JA='@LOCALE_JA@' \
tests/test-c32rtomb-w32.c
tests/signature.h
tests/macros.h
+m4/locale-en.m4
m4/locale-fr.m4
m4/locale-ja.m4
m4/locale-zh.m4
localcharset
configure.ac:
+gt_LOCALE_EN_UTF8
gt_LOCALE_FR
gt_LOCALE_FR_UTF8
gt_LOCALE_JA
test-c32rtomb-w32-5.sh test-c32rtomb-w32-6.sh test-c32rtomb-w32-7.sh \
test-c32rtomb-w32-8.sh
TESTS_ENVIRONMENT += \
+ LOCALE_EN_UTF8='@LOCALE_EN_UTF8@' \
LOCALE_FR='@LOCALE_FR@' \
LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' \
LOCALE_JA='@LOCALE_JA@' \
tests/test-c32snrtombs.c
tests/signature.h
tests/macros.h
+m4/locale-en.m4
m4/locale-fr.m4
m4/locale-ja.m4
m4/locale-zh.m4
mbstoc32s
configure.ac:
+gt_LOCALE_EN_UTF8
gt_LOCALE_FR
gt_LOCALE_FR_UTF8
gt_LOCALE_JA
Makefile.am:
TESTS += test-c32snrtombs-2.sh test-c32snrtombs-3.sh test-c32snrtombs-4.sh test-c32snrtombs-5.sh
TESTS_ENVIRONMENT += \
+ LOCALE_EN_UTF8='@LOCALE_EN_UTF8@' \
LOCALE_FR='@LOCALE_FR@' \
LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' \
LOCALE_JA='@LOCALE_JA@' \
tests/test-c32srtombs.c
tests/signature.h
tests/macros.h
+m4/locale-en.m4
m4/locale-fr.m4
m4/locale-ja.m4
m4/locale-zh.m4
mbstoc32s
configure.ac:
+gt_LOCALE_EN_UTF8
gt_LOCALE_FR
gt_LOCALE_FR_UTF8
gt_LOCALE_JA
Makefile.am:
TESTS += test-c32srtombs-2.sh test-c32srtombs-3.sh test-c32srtombs-4.sh test-c32srtombs-5.sh
TESTS_ENVIRONMENT += \
+ LOCALE_EN_UTF8='@LOCALE_EN_UTF8@' \
LOCALE_FR='@LOCALE_FR@' \
LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' \
LOCALE_JA='@LOCALE_JA@' \
tests/test-c32stombs.c
tests/signature.h
tests/macros.h
+m4/locale-en.m4
m4/locale-fr.m4
m4/locale-ja.m4
m4/locale-zh.m4
mbstoc32s
configure.ac:
+gt_LOCALE_EN_UTF8
gt_LOCALE_FR
gt_LOCALE_FR_UTF8
gt_LOCALE_JA
Makefile.am:
TESTS += test-c32stombs-2.sh test-c32stombs-3.sh test-c32stombs-4.sh test-c32stombs-5.sh
TESTS_ENVIRONMENT += \
+ LOCALE_EN_UTF8='@LOCALE_EN_UTF8@' \
LOCALE_FR='@LOCALE_FR@' \
LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' \
LOCALE_JA='@LOCALE_JA@' \
tests/test-c32tolower.c
tests/signature.h
tests/macros.h
+m4/locale-en.m4
m4/locale-fr.m4
m4/locale-ja.m4
m4/locale-zh.m4
setlocale
configure.ac:
+gt_LOCALE_EN_UTF8
gt_LOCALE_FR
gt_LOCALE_FR_UTF8
gt_LOCALE_JA
Makefile.am:
TESTS += test-c32tolower.sh
TESTS_ENVIRONMENT += \
+ LOCALE_EN_UTF8='@LOCALE_EN_UTF8@' \
LOCALE_FR='@LOCALE_FR@' \
LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' \
LOCALE_JA='@LOCALE_JA@' \
tests/test-c32toupper.c
tests/signature.h
tests/macros.h
+m4/locale-en.m4
m4/locale-fr.m4
m4/locale-ja.m4
m4/locale-zh.m4
setlocale
configure.ac:
+gt_LOCALE_EN_UTF8
gt_LOCALE_FR
gt_LOCALE_FR_UTF8
gt_LOCALE_JA
Makefile.am:
TESTS += test-c32toupper.sh
TESTS_ENVIRONMENT += \
+ LOCALE_EN_UTF8='@LOCALE_EN_UTF8@' \
LOCALE_FR='@LOCALE_FR@' \
LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' \
LOCALE_JA='@LOCALE_JA@' \
tests/test-fnmatch-w32.c
tests/signature.h
tests/macros.h
+m4/locale-en.m4
m4/locale-fr.m4
m4/locale-ja.m4
m4/locale-zh.m4
wctype-h
configure.ac:
+gt_LOCALE_EN_UTF8
gt_LOCALE_FR
gt_LOCALE_FR_UTF8
gt_LOCALE_JA
test-fnmatch-w32-5.sh test-fnmatch-w32-6.sh test-fnmatch-w32-7.sh \
test-fnmatch-w32-8.sh
TESTS_ENVIRONMENT += \
+ LOCALE_EN_UTF8='@LOCALE_EN_UTF8@' \
LOCALE_FR='@LOCALE_FR@' \
LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' \
LOCALE_JA='@LOCALE_JA@' \
tests/test-iswdigit.c
tests/signature.h
tests/macros.h
+m4/locale-en.m4
m4/locale-fr.m4
m4/locale-ja.m4
m4/locale-zh.m4
setlocale
configure.ac:
+gt_LOCALE_EN_UTF8
gt_LOCALE_FR
gt_LOCALE_FR_UTF8
gt_LOCALE_JA
Makefile.am:
TESTS += test-iswdigit.sh
TESTS_ENVIRONMENT += \
+ LOCALE_EN_UTF8='@LOCALE_EN_UTF8@' \
LOCALE_FR='@LOCALE_FR@' \
LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' \
LOCALE_JA='@LOCALE_JA@' \
tests/test-iswxdigit.c
tests/signature.h
tests/macros.h
+m4/locale-en.m4
m4/locale-fr.m4
m4/locale-ja.m4
m4/locale-zh.m4
setlocale
configure.ac:
+gt_LOCALE_EN_UTF8
gt_LOCALE_FR
gt_LOCALE_FR_UTF8
gt_LOCALE_JA
Makefile.am:
TESTS += test-iswxdigit.sh
TESTS_ENVIRONMENT += \
+ LOCALE_EN_UTF8='@LOCALE_EN_UTF8@' \
LOCALE_FR='@LOCALE_FR@' \
LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' \
LOCALE_JA='@LOCALE_JA@' \
tests/test-mbmemcasecmp.c
tests/test-mbmemcasecmp.h
tests/macros.h
+m4/locale-en.m4
m4/locale-fr.m4
m4/locale-tr.m4
m4/codeset.m4
wctype-h
configure.ac:
+gt_LOCALE_EN_UTF8
gt_LOCALE_FR
gt_LOCALE_FR_UTF8
gt_LOCALE_TR_UTF8
Makefile.am:
TESTS += test-mbmemcasecmp-2.sh test-mbmemcasecmp-3.sh test-mbmemcasecmp-4.sh
TESTS_ENVIRONMENT += \
+ LOCALE_EN_UTF8='@LOCALE_EN_UTF8@' \
LOCALE_FR='@LOCALE_FR@' \
LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' \
LOCALE_TR_UTF8='@LOCALE_TR_UTF8@'
tests/test-mbmemcasecoll.c
tests/test-mbmemcasecmp.h
tests/macros.h
+m4/locale-en.m4
m4/locale-fr.m4
m4/locale-tr.m4
m4/codeset.m4
wctype-h
configure.ac:
+gt_LOCALE_EN_UTF8
gt_LOCALE_FR
gt_LOCALE_FR_UTF8
gt_LOCALE_TR_UTF8
Makefile.am:
TESTS += test-mbmemcasecoll-2.sh test-mbmemcasecoll-3.sh test-mbmemcasecoll-4.sh
TESTS_ENVIRONMENT += \
+ LOCALE_EN_UTF8='@LOCALE_EN_UTF8@' \
LOCALE_FR='@LOCALE_FR@' \
LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' \
LOCALE_TR_UTF8='@LOCALE_TR_UTF8@'
tests/test-mbrlen-w32.c
tests/signature.h
tests/macros.h
+m4/locale-en.m4
m4/locale-fr.m4
m4/locale-ja.m4
m4/locale-zh.m4
localcharset
configure.ac:
+gt_LOCALE_EN_UTF8
gt_LOCALE_FR
gt_LOCALE_FR_UTF8
gt_LOCALE_JA
test-mbrlen-w32-5.sh test-mbrlen-w32-6.sh test-mbrlen-w32-7.sh \
test-mbrlen-w32-8.sh
TESTS_ENVIRONMENT += \
+ LOCALE_EN_UTF8='@LOCALE_EN_UTF8@' \
LOCALE_FR='@LOCALE_FR@' \
LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' \
LOCALE_JA='@LOCALE_JA@' \
tests/test-mbrtoc16-w32.c
tests/signature.h
tests/macros.h
+m4/locale-en.m4
m4/locale-fr.m4
m4/locale-ja.m4
m4/locale-zh.m4
localcharset
configure.ac:
+gt_LOCALE_EN_UTF8
gt_LOCALE_FR
gt_LOCALE_FR_UTF8
gt_LOCALE_JA
test-mbrtoc16-w32-5.sh test-mbrtoc16-w32-6.sh test-mbrtoc16-w32-7.sh \
test-mbrtoc16-w32-8.sh
TESTS_ENVIRONMENT += \
+ LOCALE_EN_UTF8='@LOCALE_EN_UTF8@' \
LOCALE_FR='@LOCALE_FR@' \
LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' \
LOCALE_JA='@LOCALE_JA@' \
tests/test-mbrtoc32-w32.c
tests/signature.h
tests/macros.h
+m4/locale-en.m4
m4/locale-fr.m4
m4/locale-ja.m4
m4/locale-zh.m4
localcharset
configure.ac:
+gt_LOCALE_EN_UTF8
gt_LOCALE_FR
gt_LOCALE_FR_UTF8
gt_LOCALE_JA
test-mbrtoc32-w32-5.sh test-mbrtoc32-w32-6.sh test-mbrtoc32-w32-7.sh \
test-mbrtoc32-w32-8.sh
TESTS_ENVIRONMENT += \
+ LOCALE_EN_UTF8='@LOCALE_EN_UTF8@' \
LOCALE_FR='@LOCALE_FR@' \
LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' \
LOCALE_JA='@LOCALE_JA@' \
tests/test-mbrtowc-w32.c
tests/signature.h
tests/macros.h
+m4/locale-en.m4
m4/locale-fr.m4
m4/locale-ja.m4
m4/locale-zh.m4
localcharset
configure.ac:
+gt_LOCALE_EN_UTF8
gt_LOCALE_FR
gt_LOCALE_FR_UTF8
gt_LOCALE_JA
test-mbrtowc-w32-5.sh test-mbrtowc-w32-6.sh test-mbrtowc-w32-7.sh \
test-mbrtowc-w32-8.sh
TESTS_ENVIRONMENT += \
+ LOCALE_EN_UTF8='@LOCALE_EN_UTF8@' \
LOCALE_FR='@LOCALE_FR@' \
LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' \
LOCALE_JA='@LOCALE_JA@' \
tests/test-mbscasestr4.sh
tests/test-mbscasestr4.c
tests/macros.h
+m4/locale-en.m4
m4/locale-fr.m4
m4/locale-tr.m4
m4/locale-zh.m4
setlocale
configure.ac:
+gt_LOCALE_EN_UTF8
gt_LOCALE_FR_UTF8
gt_LOCALE_TR_UTF8
gt_LOCALE_ZH_CN
Makefile.am:
TESTS += test-mbscasestr1 test-mbscasestr2.sh test-mbscasestr3.sh test-mbscasestr4.sh
-TESTS_ENVIRONMENT += LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' LOCALE_TR_UTF8='@LOCALE_TR_UTF8@' LOCALE_ZH_CN='@LOCALE_ZH_CN@'
+TESTS_ENVIRONMENT += \
+ LOCALE_EN_UTF8='@LOCALE_EN_UTF8@' \
+ LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' \
+ LOCALE_TR_UTF8='@LOCALE_TR_UTF8@' \
+ LOCALE_ZH_CN='@LOCALE_ZH_CN@'
check_PROGRAMS += test-mbscasestr1 test-mbscasestr2 test-mbscasestr3 test-mbscasestr4
test_mbscasestr1_LDADD = $(LDADD) $(LIBUNISTRING) $(MBRTOWC_LIB) $(LIBC32CONV)
test_mbscasestr2_LDADD = $(LDADD) $(LIBUNISTRING) $(SETLOCALE_LIB) $(MBRTOWC_LIB) $(LIBC32CONV)
tests/test-mbscspn.sh
tests/test-mbscspn.c
tests/macros.h
+m4/locale-en.m4
m4/locale-fr.m4
m4/codeset.m4
setlocale
configure.ac:
+gt_LOCALE_EN_UTF8
gt_LOCALE_FR_UTF8
Makefile.am:
TESTS += test-mbscspn.sh
-TESTS_ENVIRONMENT += LOCALE_FR_UTF8='@LOCALE_FR_UTF8@'
+TESTS_ENVIRONMENT += \
+ LOCALE_EN_UTF8='@LOCALE_EN_UTF8@' \
+ LOCALE_FR_UTF8='@LOCALE_FR_UTF8@'
check_PROGRAMS += test-mbscspn
test_mbscspn_LDADD = $(LDADD) $(LIBUNISTRING) $(SETLOCALE_LIB) $(MBRTOWC_LIB) $(LIBC32CONV)
tests/test-mbsinit.c
tests/signature.h
tests/macros.h
+m4/locale-en.m4
m4/locale-fr.m4
m4/codeset.m4
setlocale
configure.ac:
+gt_LOCALE_EN_UTF8
gt_LOCALE_FR_UTF8
Makefile.am:
TESTS += test-mbsinit.sh
-TESTS_ENVIRONMENT += LOCALE_FR_UTF8='@LOCALE_FR_UTF8@'
+TESTS_ENVIRONMENT += \
+ LOCALE_EN_UTF8='@LOCALE_EN_UTF8@' \
+ LOCALE_FR_UTF8='@LOCALE_FR_UTF8@'
check_PROGRAMS += test-mbsinit
test_mbsinit_LDADD = $(LDADD) $(SETLOCALE_LIB) $(MBRTOWC_LIB)
tests/test-mbslen.sh
tests/test-mbslen.c
tests/macros.h
+m4/locale-en.m4
m4/locale-fr.m4
m4/codeset.m4
setlocale
configure.ac:
+gt_LOCALE_EN_UTF8
gt_LOCALE_FR_UTF8
Makefile.am:
TESTS += test-mbslen.sh
-TESTS_ENVIRONMENT += LOCALE_FR_UTF8='@LOCALE_FR_UTF8@'
+TESTS_ENVIRONMENT += \
+ LOCALE_EN_UTF8='@LOCALE_EN_UTF8@' \
+ LOCALE_FR_UTF8='@LOCALE_FR_UTF8@'
check_PROGRAMS += test-mbslen
test_mbslen_LDADD = $(LDADD) $(LIBUNISTRING) $(SETLOCALE_LIB) $(MBRTOWC_LIB) $(LIBC32CONV)
tests/test-mbsnlen.sh
tests/test-mbsnlen.c
tests/macros.h
+m4/locale-en.m4
m4/locale-fr.m4
m4/codeset.m4
setlocale
configure.ac:
+gt_LOCALE_EN_UTF8
gt_LOCALE_FR_UTF8
Makefile.am:
TESTS += test-mbsnlen.sh
-TESTS_ENVIRONMENT += LOCALE_FR_UTF8='@LOCALE_FR_UTF8@'
+TESTS_ENVIRONMENT += \
+ LOCALE_EN_UTF8='@LOCALE_EN_UTF8@' \
+ LOCALE_FR_UTF8='@LOCALE_FR_UTF8@'
check_PROGRAMS += test-mbsnlen
test_mbsnlen_LDADD = $(LDADD) $(LIBUNISTRING) $(SETLOCALE_LIB) $(MBRTOWC_LIB) $(LIBC32CONV)
tests/test-mbsnrtoc32s.c
tests/signature.h
tests/macros.h
+m4/locale-en.m4
m4/locale-fr.m4
m4/locale-ja.m4
m4/locale-zh.m4
setlocale
configure.ac:
+gt_LOCALE_EN_UTF8
gt_LOCALE_FR
gt_LOCALE_FR_UTF8
gt_LOCALE_JA
test-mbsnrtoc32s-1.sh test-mbsnrtoc32s-2.sh test-mbsnrtoc32s-3.sh \
test-mbsnrtoc32s-4.sh test-mbsnrtoc32s-5.sh
TESTS_ENVIRONMENT += \
+ LOCALE_EN_UTF8='@LOCALE_EN_UTF8@' \
LOCALE_FR='@LOCALE_FR@' \
LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' \
LOCALE_JA='@LOCALE_JA@' \
tests/test-mbsnrtowcs.c
tests/signature.h
tests/macros.h
+m4/locale-en.m4
m4/locale-fr.m4
m4/locale-ja.m4
m4/locale-zh.m4
setlocale
configure.ac:
+gt_LOCALE_EN_UTF8
gt_LOCALE_FR
gt_LOCALE_FR_UTF8
gt_LOCALE_JA
test-mbsnrtowcs-1.sh test-mbsnrtowcs-2.sh test-mbsnrtowcs-3.sh \
test-mbsnrtowcs-4.sh test-mbsnrtowcs-5.sh
TESTS_ENVIRONMENT += \
+ LOCALE_EN_UTF8='@LOCALE_EN_UTF8@' \
LOCALE_FR='@LOCALE_FR@' \
LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' \
LOCALE_JA='@LOCALE_JA@' \
tests/test-mbspbrk.sh
tests/test-mbspbrk.c
tests/macros.h
+m4/locale-en.m4
m4/locale-fr.m4
m4/codeset.m4
setlocale
configure.ac:
+gt_LOCALE_EN_UTF8
gt_LOCALE_FR_UTF8
Makefile.am:
TESTS += test-mbspbrk.sh
-TESTS_ENVIRONMENT += LOCALE_FR_UTF8='@LOCALE_FR_UTF8@'
+TESTS_ENVIRONMENT += \
+ LOCALE_EN_UTF8='@LOCALE_EN_UTF8@' \
+ LOCALE_FR_UTF8='@LOCALE_FR_UTF8@'
check_PROGRAMS += test-mbspbrk
test_mbspbrk_LDADD = $(LDADD) $(LIBUNISTRING) $(SETLOCALE_LIB) $(MBRTOWC_LIB) $(LIBC32CONV)
tests/test-mbsrtoc32s.c
tests/signature.h
tests/macros.h
+m4/locale-en.m4
m4/locale-fr.m4
m4/locale-ja.m4
m4/locale-zh.m4
setlocale
configure.ac:
+gt_LOCALE_EN_UTF8
gt_LOCALE_FR
gt_LOCALE_FR_UTF8
gt_LOCALE_JA
test-mbsrtoc32s-1.sh test-mbsrtoc32s-2.sh test-mbsrtoc32s-3.sh \
test-mbsrtoc32s-4.sh test-mbsrtoc32s-5.sh
TESTS_ENVIRONMENT += \
+ LOCALE_EN_UTF8='@LOCALE_EN_UTF8@' \
LOCALE_FR='@LOCALE_FR@' \
LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' \
LOCALE_JA='@LOCALE_JA@' \
tests/test-mbsrtowcs.c
tests/signature.h
tests/macros.h
+m4/locale-en.m4
m4/locale-fr.m4
m4/locale-ja.m4
m4/locale-zh.m4
setlocale
configure.ac:
+gt_LOCALE_EN_UTF8
gt_LOCALE_FR
gt_LOCALE_FR_UTF8
gt_LOCALE_JA
test-mbsrtowcs-1.sh test-mbsrtowcs-2.sh test-mbsrtowcs-3.sh \
test-mbsrtowcs-4.sh test-mbsrtowcs-5.sh
TESTS_ENVIRONMENT += \
+ LOCALE_EN_UTF8='@LOCALE_EN_UTF8@' \
LOCALE_FR='@LOCALE_FR@' \
LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' \
LOCALE_JA='@LOCALE_JA@' \
tests/test-mbsspn.sh
tests/test-mbsspn.c
tests/macros.h
+m4/locale-en.m4
m4/locale-fr.m4
m4/codeset.m4
setlocale
configure.ac:
+gt_LOCALE_EN_UTF8
gt_LOCALE_FR_UTF8
Makefile.am:
TESTS += test-mbsspn.sh
-TESTS_ENVIRONMENT += LOCALE_FR_UTF8='@LOCALE_FR_UTF8@'
+TESTS_ENVIRONMENT += \
+ LOCALE_EN_UTF8='@LOCALE_EN_UTF8@' \
+ LOCALE_FR_UTF8='@LOCALE_FR_UTF8@'
check_PROGRAMS += test-mbsspn
test_mbsspn_LDADD = $(LDADD) $(LIBUNISTRING) $(SETLOCALE_LIB) $(MBRTOWC_LIB) $(LIBC32CONV)
tests/test-mbsstr3.sh
tests/test-mbsstr3.c
tests/macros.h
+m4/locale-en.m4
m4/locale-fr.m4
m4/locale-zh.m4
m4/codeset.m4
setlocale
configure.ac:
+gt_LOCALE_EN_UTF8
gt_LOCALE_FR_UTF8
gt_LOCALE_ZH_CN
Makefile.am:
TESTS += test-mbsstr1 test-mbsstr2.sh test-mbsstr3.sh
-TESTS_ENVIRONMENT += LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' LOCALE_ZH_CN='@LOCALE_ZH_CN@'
+TESTS_ENVIRONMENT += \
+ LOCALE_EN_UTF8='@LOCALE_EN_UTF8@' \
+ LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' \
+ LOCALE_ZH_CN='@LOCALE_ZH_CN@'
check_PROGRAMS += test-mbsstr1 test-mbsstr2 test-mbsstr3
test_mbsstr1_LDADD = $(LDADD) $(LIBUNISTRING) $(MBRTOWC_LIB) $(LIBC32CONV)
test_mbsstr2_LDADD = $(LDADD) $(LIBUNISTRING) $(SETLOCALE_LIB) $(MBRTOWC_LIB) $(LIBC32CONV)
tests/test-mbstoc32s.c
tests/signature.h
tests/macros.h
+m4/locale-en.m4
m4/locale-fr.m4
m4/locale-ja.m4
m4/locale-zh.m4
setlocale
configure.ac:
+gt_LOCALE_EN_UTF8
gt_LOCALE_FR
gt_LOCALE_FR_UTF8
gt_LOCALE_JA
test-mbstoc32s-1.sh test-mbstoc32s-2.sh test-mbstoc32s-3.sh \
test-mbstoc32s-4.sh test-mbstoc32s-5.sh
TESTS_ENVIRONMENT += \
+ LOCALE_EN_UTF8='@LOCALE_EN_UTF8@' \
LOCALE_FR='@LOCALE_FR@' \
LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' \
LOCALE_JA='@LOCALE_JA@' \
tests/test-mbstowcs.c
tests/signature.h
tests/macros.h
+m4/locale-en.m4
m4/locale-fr.m4
m4/locale-ja.m4
m4/locale-zh.m4
setlocale
configure.ac:
+gt_LOCALE_EN_UTF8
gt_LOCALE_FR
gt_LOCALE_FR_UTF8
gt_LOCALE_JA
test-mbstowcs-1.sh test-mbstowcs-2.sh test-mbstowcs-3.sh test-mbstowcs-4.sh \
test-mbstowcs-5.sh
TESTS_ENVIRONMENT += \
+ LOCALE_EN_UTF8='@LOCALE_EN_UTF8@' \
LOCALE_FR='@LOCALE_FR@' \
LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' \
LOCALE_JA='@LOCALE_JA@' \
tests/test-mcel-5.sh
tests/test-mcel.c
tests/macros.h
+m4/locale-en.m4
m4/locale-fr.m4
m4/locale-ja.m4
m4/locale-zh.m4
setlocale
configure.ac:
+gt_LOCALE_EN_UTF8
gt_LOCALE_FR
gt_LOCALE_FR_UTF8
gt_LOCALE_JA
TESTS += \
test-mcel-1.sh test-mcel-2.sh test-mcel-3.sh test-mcel-4.sh test-mcel-5.sh
TESTS_ENVIRONMENT += \
+ LOCALE_EN_UTF8='@LOCALE_EN_UTF8@' \
LOCALE_FR='@LOCALE_FR@' \
LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' \
LOCALE_JA='@LOCALE_JA@' \
tests/test-trim3.sh
tests/test-trim.c
tests/macros.h
+m4/locale-en.m4
m4/locale-fr.m4
m4/locale-zh.m4
m4/codeset.m4
setlocale
configure.ac:
+gt_LOCALE_EN_UTF8
gt_LOCALE_FR_UTF8
gt_LOCALE_ZH_CN
Makefile.am:
TESTS += test-trim1.sh test-trim2.sh test-trim3.sh
TESTS_ENVIRONMENT += \
+ LOCALE_EN_UTF8='@LOCALE_EN_UTF8@' \
LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' \
LOCALE_ZH_CN='@LOCALE_ZH_CN@'
check_PROGRAMS += test-trim
tests/test-unicodeio3.sh
tests/test-unicodeio.c
tests/macros.h
+m4/locale-en.m4
m4/locale-fr.m4
m4/locale-zh.m4
m4/codeset.m4
localcharset
configure.ac:
+gt_LOCALE_EN_UTF8
gt_LOCALE_FR_UTF8
gt_LOCALE_ZH_CN
Makefile.am:
TESTS += test-unicodeio1.sh test-unicodeio2.sh test-unicodeio3.sh
TESTS_ENVIRONMENT += \
+ LOCALE_EN_UTF8='@LOCALE_EN_UTF8@' \
LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' \
LOCALE_ZH_CN='@LOCALE_ZH_CN@'
check_PROGRAMS += test-unicodeio
tests/test-wcrtomb-w32.c
tests/signature.h
tests/macros.h
+m4/locale-en.m4
m4/locale-fr.m4
m4/locale-ja.m4
m4/locale-zh.m4
localcharset
configure.ac:
+gt_LOCALE_EN_UTF8
gt_LOCALE_FR
gt_LOCALE_FR_UTF8
gt_LOCALE_JA
test-wcrtomb-w32-5.sh test-wcrtomb-w32-6.sh test-wcrtomb-w32-7.sh \
test-wcrtomb-w32-8.sh
TESTS_ENVIRONMENT += \
+ LOCALE_EN_UTF8='@LOCALE_EN_UTF8@' \
LOCALE_FR='@LOCALE_FR@' \
LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' \
LOCALE_JA='@LOCALE_JA@' \
tests/test-wcsnrtombs.c
tests/signature.h
tests/macros.h
+m4/locale-en.m4
m4/locale-fr.m4
m4/locale-ja.m4
m4/locale-zh.m4
setlocale
configure.ac:
+gt_LOCALE_EN_UTF8
gt_LOCALE_FR
gt_LOCALE_FR_UTF8
gt_LOCALE_JA
test-wcsnrtombs-2.sh test-wcsnrtombs-3.sh test-wcsnrtombs-4.sh \
test-wcsnrtombs-5.sh
TESTS_ENVIRONMENT += \
+ LOCALE_EN_UTF8='@LOCALE_EN_UTF8@' \
LOCALE_FR='@LOCALE_FR@' \
LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' \
LOCALE_JA='@LOCALE_JA@' \
tests/test-wcsrtombs.c
tests/signature.h
tests/macros.h
+m4/locale-en.m4
m4/locale-fr.m4
m4/locale-ja.m4
m4/locale-zh.m4
setlocale
configure.ac:
+gt_LOCALE_EN_UTF8
gt_LOCALE_FR
gt_LOCALE_FR_UTF8
gt_LOCALE_JA
test-wcsrtombs-2.sh test-wcsrtombs-3.sh test-wcsrtombs-4.sh \
test-wcsrtombs-5.sh
TESTS_ENVIRONMENT += \
+ LOCALE_EN_UTF8='@LOCALE_EN_UTF8@' \
LOCALE_FR='@LOCALE_FR@' \
LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' \
LOCALE_JA='@LOCALE_JA@' \
#!/bin/sh
# Test whether a specific UTF-8 locale is installed.
+: "${LOCALE_EN_UTF8=en_US.UTF-8}"
: "${LOCALE_FR_UTF8=fr_FR.UTF-8}"
-if test $LOCALE_FR_UTF8 = none; then
+if test "$LOCALE_EN_UTF8" = none && test $LOCALE_FR_UTF8 = none; then
if test -f /usr/bin/localedef; then
- echo "Skipping test: no french Unicode locale is installed"
+ echo "Skipping test: no english or french Unicode locale is installed"
else
- echo "Skipping test: no french Unicode locale is supported"
+ echo "Skipping test: no english or french Unicode locale is supported"
fi
exit 77
fi
-LC_ALL=$LOCALE_FR_UTF8 \
+# It's sufficient to test in one of the two locales.
+if test $LOCALE_FR_UTF8 != none; then
+ testlocale=$LOCALE_FR_UTF8
+else
+ testlocale="$LOCALE_EN_UTF8"
+fi
+
+LC_ALL="$testlocale" \
${CHECKER} ./test-btoc32${EXEEXT} 3
#!/bin/sh
# Test whether a specific UTF-8 locale is installed.
+: "${LOCALE_EN_UTF8=en_US.UTF-8}"
: "${LOCALE_FR_UTF8=fr_FR.UTF-8}"
-if test $LOCALE_FR_UTF8 = none; then
+if test "$LOCALE_EN_UTF8" = none && test $LOCALE_FR_UTF8 = none; then
if test -f /usr/bin/localedef; then
- echo "Skipping test: no french Unicode locale is installed"
+ echo "Skipping test: no english or french Unicode locale is installed"
else
- echo "Skipping test: no french Unicode locale is supported"
+ echo "Skipping test: no english or french Unicode locale is supported"
fi
exit 77
fi
-LC_ALL=$LOCALE_FR_UTF8 \
+# It's sufficient to test in one of the two locales.
+if test $LOCALE_FR_UTF8 != none; then
+ testlocale=$LOCALE_FR_UTF8
+else
+ testlocale="$LOCALE_EN_UTF8"
+fi
+
+LC_ALL="$testlocale" \
${CHECKER} ./test-btowc${EXEEXT} 3
fi
# Test whether a specific UTF-8 locale is installed.
+: "${LOCALE_EN_UTF8=en_US.UTF-8}"
: "${LOCALE_FR_UTF8=fr_FR.UTF-8}"
-if test $LOCALE_FR_UTF8 != none; then
- LC_ALL=$LOCALE_FR_UTF8 \
+if test "$LOCALE_EN_UTF8" != none || test $LOCALE_FR_UTF8 != none; then
+ # It's sufficient to test in one of the two locales.
+ if test $LOCALE_FR_UTF8 != none; then
+ testlocale=$LOCALE_FR_UTF8
+ else
+ testlocale="$LOCALE_EN_UTF8"
+ fi
+ LC_ALL="$testlocale" \
${CHECKER} ./test-c32isalnum${EXEEXT} 3 \
|| exit 1
fi
fi
# Test whether a specific UTF-8 locale is installed.
+: "${LOCALE_EN_UTF8=en_US.UTF-8}"
: "${LOCALE_FR_UTF8=fr_FR.UTF-8}"
-if test $LOCALE_FR_UTF8 != none; then
- LC_ALL=$LOCALE_FR_UTF8 \
+if test "$LOCALE_EN_UTF8" != none || test $LOCALE_FR_UTF8 != none; then
+ # It's sufficient to test in one of the two locales.
+ if test $LOCALE_FR_UTF8 != none; then
+ testlocale=$LOCALE_FR_UTF8
+ else
+ testlocale="$LOCALE_EN_UTF8"
+ fi
+ LC_ALL="$testlocale" \
${CHECKER} ./test-c32isalpha${EXEEXT} 3 \
|| exit 1
fi
fi
# Test whether a specific UTF-8 locale is installed.
+: "${LOCALE_EN_UTF8=en_US.UTF-8}"
: "${LOCALE_FR_UTF8=fr_FR.UTF-8}"
-if test $LOCALE_FR_UTF8 != none; then
- LC_ALL=$LOCALE_FR_UTF8 \
+if test "$LOCALE_EN_UTF8" != none || test $LOCALE_FR_UTF8 != none; then
+ # It's sufficient to test in one of the two locales.
+ if test $LOCALE_FR_UTF8 != none; then
+ testlocale=$LOCALE_FR_UTF8
+ else
+ testlocale="$LOCALE_EN_UTF8"
+ fi
+ LC_ALL="$testlocale" \
${CHECKER} ./test-c32isblank${EXEEXT} 3 \
|| exit 1
fi
fi
# Test whether a specific UTF-8 locale is installed.
+: "${LOCALE_EN_UTF8=en_US.UTF-8}"
: "${LOCALE_FR_UTF8=fr_FR.UTF-8}"
-if test $LOCALE_FR_UTF8 != none; then
- LC_ALL=$LOCALE_FR_UTF8 \
+if test "$LOCALE_EN_UTF8" != none || test $LOCALE_FR_UTF8 != none; then
+ # It's sufficient to test in one of the two locales.
+ if test $LOCALE_FR_UTF8 != none; then
+ testlocale=$LOCALE_FR_UTF8
+ else
+ testlocale="$LOCALE_EN_UTF8"
+ fi
+ LC_ALL="$testlocale" \
${CHECKER} ./test-c32iscntrl${EXEEXT} 3 \
|| exit 1
fi
fi
# Test whether a specific UTF-8 locale is installed.
+: "${LOCALE_EN_UTF8=en_US.UTF-8}"
: "${LOCALE_FR_UTF8=fr_FR.UTF-8}"
-if test $LOCALE_FR_UTF8 != none; then
- LC_ALL=$LOCALE_FR_UTF8 \
+if test "$LOCALE_EN_UTF8" != none || test $LOCALE_FR_UTF8 != none; then
+ # It's sufficient to test in one of the two locales.
+ if test $LOCALE_FR_UTF8 != none; then
+ testlocale=$LOCALE_FR_UTF8
+ else
+ testlocale="$LOCALE_EN_UTF8"
+ fi
+ LC_ALL="$testlocale" \
${CHECKER} ./test-c32isdigit${EXEEXT} 3 \
|| exit 1
fi
fi
# Test whether a specific UTF-8 locale is installed.
+: "${LOCALE_EN_UTF8=en_US.UTF-8}"
: "${LOCALE_FR_UTF8=fr_FR.UTF-8}"
-if test $LOCALE_FR_UTF8 != none; then
- LC_ALL=$LOCALE_FR_UTF8 \
+if test "$LOCALE_EN_UTF8" != none || test $LOCALE_FR_UTF8 != none; then
+ # It's sufficient to test in one of the two locales.
+ if test $LOCALE_FR_UTF8 != none; then
+ testlocale=$LOCALE_FR_UTF8
+ else
+ testlocale="$LOCALE_EN_UTF8"
+ fi
+ LC_ALL="$testlocale" \
${CHECKER} ./test-c32isgraph${EXEEXT} 3 \
|| exit 1
fi
fi
# Test whether a specific UTF-8 locale is installed.
+: "${LOCALE_EN_UTF8=en_US.UTF-8}"
: "${LOCALE_FR_UTF8=fr_FR.UTF-8}"
-if test $LOCALE_FR_UTF8 != none; then
- LC_ALL=$LOCALE_FR_UTF8 \
+if test "$LOCALE_EN_UTF8" != none || test $LOCALE_FR_UTF8 != none; then
+ # It's sufficient to test in one of the two locales.
+ if test $LOCALE_FR_UTF8 != none; then
+ testlocale=$LOCALE_FR_UTF8
+ else
+ testlocale="$LOCALE_EN_UTF8"
+ fi
+ LC_ALL="$testlocale" \
${CHECKER} ./test-c32islower${EXEEXT} 3 \
|| exit 1
fi
fi
# Test whether a specific UTF-8 locale is installed.
+: "${LOCALE_EN_UTF8=en_US.UTF-8}"
: "${LOCALE_FR_UTF8=fr_FR.UTF-8}"
-if test $LOCALE_FR_UTF8 != none; then
- LC_ALL=$LOCALE_FR_UTF8 \
+if test "$LOCALE_EN_UTF8" != none || test $LOCALE_FR_UTF8 != none; then
+ # It's sufficient to test in one of the two locales.
+ if test $LOCALE_FR_UTF8 != none; then
+ testlocale=$LOCALE_FR_UTF8
+ else
+ testlocale="$LOCALE_EN_UTF8"
+ fi
+ LC_ALL="$testlocale" \
${CHECKER} ./test-c32isprint${EXEEXT} 3 \
|| exit 1
fi
fi
# Test whether a specific UTF-8 locale is installed.
+: "${LOCALE_EN_UTF8=en_US.UTF-8}"
: "${LOCALE_FR_UTF8=fr_FR.UTF-8}"
-if test $LOCALE_FR_UTF8 != none; then
- LC_ALL=$LOCALE_FR_UTF8 \
+if test "$LOCALE_EN_UTF8" != none || test $LOCALE_FR_UTF8 != none; then
+ # It's sufficient to test in one of the two locales.
+ if test $LOCALE_FR_UTF8 != none; then
+ testlocale=$LOCALE_FR_UTF8
+ else
+ testlocale="$LOCALE_EN_UTF8"
+ fi
+ LC_ALL="$testlocale" \
${CHECKER} ./test-c32ispunct${EXEEXT} 3 \
|| exit 1
fi
fi
# Test whether a specific UTF-8 locale is installed.
+: "${LOCALE_EN_UTF8=en_US.UTF-8}"
: "${LOCALE_FR_UTF8=fr_FR.UTF-8}"
-if test $LOCALE_FR_UTF8 != none; then
- LC_ALL=$LOCALE_FR_UTF8 \
+if test "$LOCALE_EN_UTF8" != none || test $LOCALE_FR_UTF8 != none; then
+ # It's sufficient to test in one of the two locales.
+ if test $LOCALE_FR_UTF8 != none; then
+ testlocale=$LOCALE_FR_UTF8
+ else
+ testlocale="$LOCALE_EN_UTF8"
+ fi
+ LC_ALL="$testlocale" \
${CHECKER} ./test-c32isspace${EXEEXT} 3 \
|| exit 1
fi
fi
# Test whether a specific UTF-8 locale is installed.
+: "${LOCALE_EN_UTF8=en_US.UTF-8}"
: "${LOCALE_FR_UTF8=fr_FR.UTF-8}"
-if test $LOCALE_FR_UTF8 != none; then
- LC_ALL=$LOCALE_FR_UTF8 \
+if test "$LOCALE_EN_UTF8" != none || test $LOCALE_FR_UTF8 != none; then
+ # It's sufficient to test in one of the two locales.
+ if test $LOCALE_FR_UTF8 != none; then
+ testlocale=$LOCALE_FR_UTF8
+ else
+ testlocale="$LOCALE_EN_UTF8"
+ fi
+ LC_ALL="$testlocale" \
${CHECKER} ./test-c32isupper${EXEEXT} 3 \
|| exit 1
fi
fi
# Test whether a specific UTF-8 locale is installed.
+: "${LOCALE_EN_UTF8=en_US.UTF-8}"
: "${LOCALE_FR_UTF8=fr_FR.UTF-8}"
-if test $LOCALE_FR_UTF8 != none; then
- LC_ALL=$LOCALE_FR_UTF8 \
+if test "$LOCALE_EN_UTF8" != none || test $LOCALE_FR_UTF8 != none; then
+ # It's sufficient to test in one of the two locales.
+ if test $LOCALE_FR_UTF8 != none; then
+ testlocale=$LOCALE_FR_UTF8
+ else
+ testlocale="$LOCALE_EN_UTF8"
+ fi
+ LC_ALL="$testlocale" \
${CHECKER} ./test-c32isxdigit${EXEEXT} 3 \
|| exit 1
fi
fi
# Test whether a specific UTF-8 locale is installed.
+: "${LOCALE_EN_UTF8=en_US.UTF-8}"
: "${LOCALE_FR_UTF8=fr_FR.UTF-8}"
-if test $LOCALE_FR_UTF8 != none; then
- LC_ALL=$LOCALE_FR_UTF8 \
+if test "$LOCALE_EN_UTF8" != none || test $LOCALE_FR_UTF8 != none; then
+ # It's sufficient to test in one of the two locales.
+ if test $LOCALE_FR_UTF8 != none; then
+ testlocale=$LOCALE_FR_UTF8
+ else
+ testlocale="$LOCALE_EN_UTF8"
+ fi
+ LC_ALL="$testlocale" \
${CHECKER} ./test-c32rtomb${EXEEXT} 3 \
|| exit 1
fi
#!/bin/sh
# Test whether a specific UTF-8 locale is installed.
+: "${LOCALE_EN_UTF8=en_US.UTF-8}"
: "${LOCALE_FR_UTF8=fr_FR.UTF-8}"
-if test $LOCALE_FR_UTF8 = none; then
+if test "$LOCALE_EN_UTF8" = none && test $LOCALE_FR_UTF8 = none; then
if test -f /usr/bin/localedef; then
- echo "Skipping test: no french Unicode locale is installed"
+ echo "Skipping test: no english or french Unicode locale is installed"
else
- echo "Skipping test: no french Unicode locale is supported"
+ echo "Skipping test: no english or french Unicode locale is supported"
fi
exit 77
fi
-LC_ALL=$LOCALE_FR_UTF8 \
+# It's sufficient to test in one of the two locales.
+if test $LOCALE_FR_UTF8 != none; then
+ testlocale=$LOCALE_FR_UTF8
+else
+ testlocale="$LOCALE_EN_UTF8"
+fi
+
+LC_ALL="$testlocale" \
${CHECKER} ./test-c32snrtombs${EXEEXT} 3
#!/bin/sh
# Test whether a specific UTF-8 locale is installed.
+: "${LOCALE_EN_UTF8=en_US.UTF-8}"
: "${LOCALE_FR_UTF8=fr_FR.UTF-8}"
-if test $LOCALE_FR_UTF8 = none; then
+if test "$LOCALE_EN_UTF8" = none && test $LOCALE_FR_UTF8 = none; then
if test -f /usr/bin/localedef; then
- echo "Skipping test: no french Unicode locale is installed"
+ echo "Skipping test: no english or french Unicode locale is installed"
else
- echo "Skipping test: no french Unicode locale is supported"
+ echo "Skipping test: no english or french Unicode locale is supported"
fi
exit 77
fi
-LC_ALL=$LOCALE_FR_UTF8 \
+# It's sufficient to test in one of the two locales.
+if test $LOCALE_FR_UTF8 != none; then
+ testlocale=$LOCALE_FR_UTF8
+else
+ testlocale="$LOCALE_EN_UTF8"
+fi
+
+LC_ALL="$testlocale" \
${CHECKER} ./test-c32srtombs${EXEEXT} 3
#!/bin/sh
# Test whether a specific UTF-8 locale is installed.
+: "${LOCALE_EN_UTF8=en_US.UTF-8}"
: "${LOCALE_FR_UTF8=fr_FR.UTF-8}"
-if test $LOCALE_FR_UTF8 = none; then
+if test "$LOCALE_EN_UTF8" = none && test $LOCALE_FR_UTF8 = none; then
if test -f /usr/bin/localedef; then
- echo "Skipping test: no french Unicode locale is installed"
+ echo "Skipping test: no english or french Unicode locale is installed"
else
- echo "Skipping test: no french Unicode locale is supported"
+ echo "Skipping test: no english or french Unicode locale is supported"
fi
exit 77
fi
-LC_ALL=$LOCALE_FR_UTF8 \
+# It's sufficient to test in one of the two locales.
+if test $LOCALE_FR_UTF8 != none; then
+ testlocale=$LOCALE_FR_UTF8
+else
+ testlocale="$LOCALE_EN_UTF8"
+fi
+
+LC_ALL="$testlocale" \
${CHECKER} ./test-c32stombs${EXEEXT} 3
fi
# Test whether a specific UTF-8 locale is installed.
+: "${LOCALE_EN_UTF8=en_US.UTF-8}"
: "${LOCALE_FR_UTF8=fr_FR.UTF-8}"
-if test $LOCALE_FR_UTF8 != none; then
- LC_ALL=$LOCALE_FR_UTF8 \
+if test "$LOCALE_EN_UTF8" != none || test $LOCALE_FR_UTF8 != none; then
+ # It's sufficient to test in one of the two locales.
+ if test $LOCALE_FR_UTF8 != none; then
+ testlocale=$LOCALE_FR_UTF8
+ else
+ testlocale="$LOCALE_EN_UTF8"
+ fi
+ LC_ALL="$testlocale" \
${CHECKER} ./test-c32tolower${EXEEXT} 3 \
|| exit 1
fi
fi
# Test whether a specific UTF-8 locale is installed.
+: "${LOCALE_EN_UTF8=en_US.UTF-8}"
: "${LOCALE_FR_UTF8=fr_FR.UTF-8}"
-if test $LOCALE_FR_UTF8 != none; then
- LC_ALL=$LOCALE_FR_UTF8 \
+if test "$LOCALE_EN_UTF8" != none || test $LOCALE_FR_UTF8 != none; then
+ # It's sufficient to test in one of the two locales.
+ if test $LOCALE_FR_UTF8 != none; then
+ testlocale=$LOCALE_FR_UTF8
+ else
+ testlocale="$LOCALE_EN_UTF8"
+ fi
+ LC_ALL="$testlocale" \
${CHECKER} ./test-c32toupper${EXEEXT} 3 \
|| exit 1
fi
#!/bin/sh
# Test whether a specific UTF-8 locale is installed.
+: "${LOCALE_EN_UTF8=en_US.UTF-8}"
: "${LOCALE_FR_UTF8=fr_FR.UTF-8}"
-if test $LOCALE_FR_UTF8 = none; then
+if test "$LOCALE_EN_UTF8" = none && test $LOCALE_FR_UTF8 = none; then
if test -f /usr/bin/localedef; then
- echo "Skipping test: no french Unicode locale is installed"
+ echo "Skipping test: no english or french Unicode locale is installed"
else
- echo "Skipping test: no french Unicode locale is supported"
+ echo "Skipping test: no english or french Unicode locale is supported"
fi
exit 77
fi
-LC_ALL=$LOCALE_FR_UTF8 \
+# It's sufficient to test in one of the two locales.
+if test $LOCALE_FR_UTF8 != none; then
+ testlocale=$LOCALE_FR_UTF8
+else
+ testlocale="$LOCALE_EN_UTF8"
+fi
+
+LC_ALL="$testlocale" \
${CHECKER} ./test-fnmatch${EXEEXT} 3
fi
# Test whether a specific UTF-8 locale is installed.
+: "${LOCALE_EN_UTF8=en_US.UTF-8}"
: "${LOCALE_FR_UTF8=fr_FR.UTF-8}"
-if test $LOCALE_FR_UTF8 != none; then
- LC_ALL=$LOCALE_FR_UTF8 \
+if test "$LOCALE_EN_UTF8" != none || test $LOCALE_FR_UTF8 != none; then
+ # It's sufficient to test in one of the two locales.
+ if test $LOCALE_FR_UTF8 != none; then
+ testlocale=$LOCALE_FR_UTF8
+ else
+ testlocale="$LOCALE_EN_UTF8"
+ fi
+ LC_ALL="$testlocale" \
${CHECKER} ./test-iswdigit${EXEEXT} 3 \
|| exit 1
fi
fi
# Test whether a specific UTF-8 locale is installed.
+: "${LOCALE_EN_UTF8=en_US.UTF-8}"
: "${LOCALE_FR_UTF8=fr_FR.UTF-8}"
-if test $LOCALE_FR_UTF8 != none; then
- LC_ALL=$LOCALE_FR_UTF8 \
+if test "$LOCALE_EN_UTF8" != none || test $LOCALE_FR_UTF8 != none; then
+ # It's sufficient to test in one of the two locales.
+ if test $LOCALE_FR_UTF8 != none; then
+ testlocale=$LOCALE_FR_UTF8
+ else
+ testlocale="$LOCALE_EN_UTF8"
+ fi
+ LC_ALL="$testlocale" \
${CHECKER} ./test-iswxdigit${EXEEXT} 3 \
|| exit 1
fi
#!/bin/sh
# Test whether a specific UTF-8 locale is installed.
+: "${LOCALE_EN_UTF8=en_US.UTF-8}"
: "${LOCALE_FR_UTF8=fr_FR.UTF-8}"
-if test $LOCALE_FR_UTF8 = none; then
+if test "$LOCALE_EN_UTF8" = none && test $LOCALE_FR_UTF8 = none; then
if test -f /usr/bin/localedef; then
- echo "Skipping test: no french Unicode locale is installed"
+ echo "Skipping test: no english or french Unicode locale is installed"
else
- echo "Skipping test: no french Unicode locale is supported"
+ echo "Skipping test: no english or french Unicode locale is supported"
fi
exit 77
fi
-LC_ALL=$LOCALE_FR_UTF8 \
+# It's sufficient to test in one of the two locales.
+if test $LOCALE_FR_UTF8 != none; then
+ testlocale=$LOCALE_FR_UTF8
+else
+ testlocale="$LOCALE_EN_UTF8"
+fi
+
+LC_ALL="$testlocale" \
${CHECKER} ./test-mbmemcasecmp${EXEEXT} 3
#!/bin/sh
# Test whether a specific UTF-8 locale is installed.
+: "${LOCALE_EN_UTF8=en_US.UTF-8}"
: "${LOCALE_FR_UTF8=fr_FR.UTF-8}"
-if test $LOCALE_FR_UTF8 = none; then
+if test "$LOCALE_EN_UTF8" = none && test $LOCALE_FR_UTF8 = none; then
if test -f /usr/bin/localedef; then
- echo "Skipping test: no french Unicode locale is installed"
+ echo "Skipping test: no english or french Unicode locale is installed"
else
- echo "Skipping test: no french Unicode locale is supported"
+ echo "Skipping test: no english or french Unicode locale is supported"
fi
exit 77
fi
-LC_ALL=$LOCALE_FR_UTF8 \
+# It's sufficient to test in one of the two locales.
+if test $LOCALE_FR_UTF8 != none; then
+ testlocale=$LOCALE_FR_UTF8
+else
+ testlocale="$LOCALE_EN_UTF8"
+fi
+
+LC_ALL="$testlocale" \
${CHECKER} ./test-mbmemcasecoll${EXEEXT} 3
#!/bin/sh
# Test whether a specific UTF-8 locale is installed.
+: "${LOCALE_EN_UTF8=en_US.UTF-8}"
: "${LOCALE_FR_UTF8=fr_FR.UTF-8}"
-if test $LOCALE_FR_UTF8 = none; then
+if test "$LOCALE_EN_UTF8" = none && test $LOCALE_FR_UTF8 = none; then
if test -f /usr/bin/localedef; then
- echo "Skipping test: no french Unicode locale is installed"
+ echo "Skipping test: no english or french Unicode locale is installed"
else
- echo "Skipping test: no french Unicode locale is supported"
+ echo "Skipping test: no english or french Unicode locale is supported"
fi
exit 77
fi
-LC_ALL=$LOCALE_FR_UTF8 \
+# It's sufficient to test in one of the two locales.
+if test $LOCALE_FR_UTF8 != none; then
+ testlocale=$LOCALE_FR_UTF8
+else
+ testlocale="$LOCALE_EN_UTF8"
+fi
+
+LC_ALL="$testlocale" \
${CHECKER} ./test-mbrlen${EXEEXT} 3
#!/bin/sh
# Test whether a specific UTF-8 locale is installed.
+: "${LOCALE_EN_UTF8=en_US.UTF-8}"
: "${LOCALE_FR_UTF8=fr_FR.UTF-8}"
-if test $LOCALE_FR_UTF8 = none; then
+if test "$LOCALE_EN_UTF8" = none && test $LOCALE_FR_UTF8 = none; then
if test -f /usr/bin/localedef; then
- echo "Skipping test: no french Unicode locale is installed"
+ echo "Skipping test: no english or french Unicode locale is installed"
else
- echo "Skipping test: no french Unicode locale is supported"
+ echo "Skipping test: no english or french Unicode locale is supported"
fi
exit 77
fi
-LC_ALL=$LOCALE_FR_UTF8 \
+# It's sufficient to test in one of the two locales.
+if test $LOCALE_FR_UTF8 != none; then
+ testlocale=$LOCALE_FR_UTF8
+else
+ testlocale="$LOCALE_EN_UTF8"
+fi
+
+LC_ALL="$testlocale" \
${CHECKER} ./test-mbrtoc16${EXEEXT} 3
#!/bin/sh
# Test whether a specific UTF-8 locale is installed.
+: "${LOCALE_EN_UTF8=en_US.UTF-8}"
: "${LOCALE_FR_UTF8=fr_FR.UTF-8}"
-if test $LOCALE_FR_UTF8 = none; then
+if test "$LOCALE_EN_UTF8" = none && test $LOCALE_FR_UTF8 = none; then
if test -f /usr/bin/localedef; then
- echo "Skipping test: no french Unicode locale is installed"
+ echo "Skipping test: no english or french Unicode locale is installed"
else
- echo "Skipping test: no french Unicode locale is supported"
+ echo "Skipping test: no english or french Unicode locale is supported"
fi
exit 77
fi
-LC_ALL=$LOCALE_FR_UTF8 \
+# It's sufficient to test in one of the two locales.
+if test $LOCALE_FR_UTF8 != none; then
+ testlocale=$LOCALE_FR_UTF8
+else
+ testlocale="$LOCALE_EN_UTF8"
+fi
+
+LC_ALL="$testlocale" \
${CHECKER} ./test-mbrtoc32${EXEEXT} 3
#!/bin/sh
# Test whether a specific UTF-8 locale is installed.
+: "${LOCALE_EN_UTF8=en_US.UTF-8}"
: "${LOCALE_FR_UTF8=fr_FR.UTF-8}"
-if test $LOCALE_FR_UTF8 = none; then
+if test "$LOCALE_EN_UTF8" = none && test $LOCALE_FR_UTF8 = none; then
if test -f /usr/bin/localedef; then
- echo "Skipping test: no french Unicode locale is installed"
+ echo "Skipping test: no english or french Unicode locale is installed"
else
- echo "Skipping test: no french Unicode locale is supported"
+ echo "Skipping test: no english or french Unicode locale is supported"
fi
exit 77
fi
-LC_ALL=$LOCALE_FR_UTF8 \
+# It's sufficient to test in one of the two locales.
+if test $LOCALE_FR_UTF8 != none; then
+ testlocale=$LOCALE_FR_UTF8
+else
+ testlocale="$LOCALE_EN_UTF8"
+fi
+
+LC_ALL="$testlocale" \
${CHECKER} ./test-mbrtowc${EXEEXT} 3
#!/bin/sh
# Test whether a specific UTF-8 locale is installed.
+: "${LOCALE_EN_UTF8=en_US.UTF-8}"
: "${LOCALE_FR_UTF8=fr_FR.UTF-8}"
-if test $LOCALE_FR_UTF8 = none; then
+if test "$LOCALE_EN_UTF8" = none && test $LOCALE_FR_UTF8 = none; then
if test -f /usr/bin/localedef; then
- echo "Skipping test: no french Unicode locale is installed"
+ echo "Skipping test: no english or french Unicode locale is installed"
else
- echo "Skipping test: no french Unicode locale is supported"
+ echo "Skipping test: no english or french Unicode locale is supported"
fi
exit 77
fi
-LC_ALL=$LOCALE_FR_UTF8 \
+# It's sufficient to test in one of the two locales.
+if test $LOCALE_FR_UTF8 != none; then
+ testlocale=$LOCALE_FR_UTF8
+else
+ testlocale="$LOCALE_EN_UTF8"
+fi
+
+LC_ALL="$testlocale" \
${CHECKER} ./test-mbscasestr2${EXEEXT}
#!/bin/sh
# Test whether a specific UTF-8 locale is installed.
+: "${LOCALE_EN_UTF8=en_US.UTF-8}"
: "${LOCALE_FR_UTF8=fr_FR.UTF-8}"
-if test $LOCALE_FR_UTF8 = none; then
+if test "$LOCALE_EN_UTF8" = none && test $LOCALE_FR_UTF8 = none; then
if test -f /usr/bin/localedef; then
- echo "Skipping test: no french Unicode locale is installed"
+ echo "Skipping test: no english or french Unicode locale is installed"
else
- echo "Skipping test: no french Unicode locale is supported"
+ echo "Skipping test: no english or french Unicode locale is supported"
fi
exit 77
fi
-LC_ALL=$LOCALE_FR_UTF8 \
+# It's sufficient to test in one of the two locales.
+if test $LOCALE_FR_UTF8 != none; then
+ testlocale=$LOCALE_FR_UTF8
+else
+ testlocale="$LOCALE_EN_UTF8"
+fi
+
+LC_ALL="$testlocale" \
${CHECKER} ./test-mbscspn${EXEEXT}
#!/bin/sh
# Test whether a specific UTF-8 locale is installed.
+: "${LOCALE_EN_UTF8=en_US.UTF-8}"
: "${LOCALE_FR_UTF8=fr_FR.UTF-8}"
-if test $LOCALE_FR_UTF8 = none; then
+if test "$LOCALE_EN_UTF8" = none && test $LOCALE_FR_UTF8 = none; then
if test -f /usr/bin/localedef; then
- echo "Skipping test: no french Unicode locale is installed"
+ echo "Skipping test: no english or french Unicode locale is installed"
else
- echo "Skipping test: no french Unicode locale is supported"
+ echo "Skipping test: no english or french Unicode locale is supported"
fi
exit 77
fi
-LC_ALL=$LOCALE_FR_UTF8 \
+# It's sufficient to test in one of the two locales.
+if test $LOCALE_FR_UTF8 != none; then
+ testlocale=$LOCALE_FR_UTF8
+else
+ testlocale="$LOCALE_EN_UTF8"
+fi
+
+LC_ALL="$testlocale" \
${CHECKER} ./test-mbsinit${EXEEXT}
#!/bin/sh
# Test whether a specific UTF-8 locale is installed.
+: "${LOCALE_EN_UTF8=en_US.UTF-8}"
: "${LOCALE_FR_UTF8=fr_FR.UTF-8}"
-if test $LOCALE_FR_UTF8 = none; then
+if test "$LOCALE_EN_UTF8" = none && test $LOCALE_FR_UTF8 = none; then
if test -f /usr/bin/localedef; then
- echo "Skipping test: no french Unicode locale is installed"
+ echo "Skipping test: no english or french Unicode locale is installed"
else
- echo "Skipping test: no french Unicode locale is supported"
+ echo "Skipping test: no english or french Unicode locale is supported"
fi
exit 77
fi
-LC_ALL=$LOCALE_FR_UTF8 \
+# It's sufficient to test in one of the two locales.
+if test $LOCALE_FR_UTF8 != none; then
+ testlocale=$LOCALE_FR_UTF8
+else
+ testlocale="$LOCALE_EN_UTF8"
+fi
+
+LC_ALL="$testlocale" \
${CHECKER} ./test-mbslen${EXEEXT}
#!/bin/sh
# Test whether a specific UTF-8 locale is installed.
+: "${LOCALE_EN_UTF8=en_US.UTF-8}"
: "${LOCALE_FR_UTF8=fr_FR.UTF-8}"
-if test $LOCALE_FR_UTF8 = none; then
+if test "$LOCALE_EN_UTF8" = none && test $LOCALE_FR_UTF8 = none; then
if test -f /usr/bin/localedef; then
- echo "Skipping test: no french Unicode locale is installed"
+ echo "Skipping test: no english or french Unicode locale is installed"
else
- echo "Skipping test: no french Unicode locale is supported"
+ echo "Skipping test: no english or french Unicode locale is supported"
fi
exit 77
fi
-LC_ALL=$LOCALE_FR_UTF8 \
+# It's sufficient to test in one of the two locales.
+if test $LOCALE_FR_UTF8 != none; then
+ testlocale=$LOCALE_FR_UTF8
+else
+ testlocale="$LOCALE_EN_UTF8"
+fi
+
+LC_ALL="$testlocale" \
${CHECKER} ./test-mbsnlen${EXEEXT}
#!/bin/sh
# Test whether a specific UTF-8 locale is installed.
+: "${LOCALE_EN_UTF8=en_US.UTF-8}"
: "${LOCALE_FR_UTF8=fr_FR.UTF-8}"
-if test $LOCALE_FR_UTF8 = none; then
+if test "$LOCALE_EN_UTF8" = none && test $LOCALE_FR_UTF8 = none; then
if test -f /usr/bin/localedef; then
- echo "Skipping test: no french Unicode locale is installed"
+ echo "Skipping test: no english or french Unicode locale is installed"
else
- echo "Skipping test: no french Unicode locale is supported"
+ echo "Skipping test: no english or french Unicode locale is supported"
fi
exit 77
fi
-LC_ALL=$LOCALE_FR_UTF8 \
+# It's sufficient to test in one of the two locales.
+if test $LOCALE_FR_UTF8 != none; then
+ testlocale=$LOCALE_FR_UTF8
+else
+ testlocale="$LOCALE_EN_UTF8"
+fi
+
+LC_ALL="$testlocale" \
${CHECKER} ./test-mbsnrtoc32s${EXEEXT} 3
#!/bin/sh
# Test whether a specific UTF-8 locale is installed.
+: "${LOCALE_EN_UTF8=en_US.UTF-8}"
: "${LOCALE_FR_UTF8=fr_FR.UTF-8}"
-if test $LOCALE_FR_UTF8 = none; then
+if test "$LOCALE_EN_UTF8" = none && test $LOCALE_FR_UTF8 = none; then
if test -f /usr/bin/localedef; then
- echo "Skipping test: no french Unicode locale is installed"
+ echo "Skipping test: no english or french Unicode locale is installed"
else
- echo "Skipping test: no french Unicode locale is supported"
+ echo "Skipping test: no english or french Unicode locale is supported"
fi
exit 77
fi
-LC_ALL=$LOCALE_FR_UTF8 \
+# It's sufficient to test in one of the two locales.
+if test $LOCALE_FR_UTF8 != none; then
+ testlocale=$LOCALE_FR_UTF8
+else
+ testlocale="$LOCALE_EN_UTF8"
+fi
+
+LC_ALL="$testlocale" \
${CHECKER} ./test-mbsnrtowcs${EXEEXT} 3
#!/bin/sh
# Test whether a specific UTF-8 locale is installed.
+: "${LOCALE_EN_UTF8=en_US.UTF-8}"
: "${LOCALE_FR_UTF8=fr_FR.UTF-8}"
-if test $LOCALE_FR_UTF8 = none; then
+if test "$LOCALE_EN_UTF8" = none && test $LOCALE_FR_UTF8 = none; then
if test -f /usr/bin/localedef; then
- echo "Skipping test: no french Unicode locale is installed"
+ echo "Skipping test: no english or french Unicode locale is installed"
else
- echo "Skipping test: no french Unicode locale is supported"
+ echo "Skipping test: no english or french Unicode locale is supported"
fi
exit 77
fi
-LC_ALL=$LOCALE_FR_UTF8 \
+# It's sufficient to test in one of the two locales.
+if test $LOCALE_FR_UTF8 != none; then
+ testlocale=$LOCALE_FR_UTF8
+else
+ testlocale="$LOCALE_EN_UTF8"
+fi
+
+LC_ALL="$testlocale" \
${CHECKER} ./test-mbspbrk${EXEEXT}
#!/bin/sh
# Test whether a specific UTF-8 locale is installed.
+: "${LOCALE_EN_UTF8=en_US.UTF-8}"
: "${LOCALE_FR_UTF8=fr_FR.UTF-8}"
-if test $LOCALE_FR_UTF8 = none; then
+if test "$LOCALE_EN_UTF8" = none && test $LOCALE_FR_UTF8 = none; then
if test -f /usr/bin/localedef; then
- echo "Skipping test: no french Unicode locale is installed"
+ echo "Skipping test: no english or french Unicode locale is installed"
else
- echo "Skipping test: no french Unicode locale is supported"
+ echo "Skipping test: no english or french Unicode locale is supported"
fi
exit 77
fi
-LC_ALL=$LOCALE_FR_UTF8 \
+# It's sufficient to test in one of the two locales.
+if test $LOCALE_FR_UTF8 != none; then
+ testlocale=$LOCALE_FR_UTF8
+else
+ testlocale="$LOCALE_EN_UTF8"
+fi
+
+LC_ALL="$testlocale" \
${CHECKER} ./test-mbsrtoc32s${EXEEXT} 3
#!/bin/sh
# Test whether a specific UTF-8 locale is installed.
+: "${LOCALE_EN_UTF8=en_US.UTF-8}"
: "${LOCALE_FR_UTF8=fr_FR.UTF-8}"
-if test $LOCALE_FR_UTF8 = none; then
+if test "$LOCALE_EN_UTF8" = none && test $LOCALE_FR_UTF8 = none; then
if test -f /usr/bin/localedef; then
- echo "Skipping test: no french Unicode locale is installed"
+ echo "Skipping test: no english or french Unicode locale is installed"
else
- echo "Skipping test: no french Unicode locale is supported"
+ echo "Skipping test: no english or french Unicode locale is supported"
fi
exit 77
fi
-LC_ALL=$LOCALE_FR_UTF8 \
+# It's sufficient to test in one of the two locales.
+if test $LOCALE_FR_UTF8 != none; then
+ testlocale=$LOCALE_FR_UTF8
+else
+ testlocale="$LOCALE_EN_UTF8"
+fi
+
+LC_ALL="$testlocale" \
${CHECKER} ./test-mbsrtowcs${EXEEXT} 3
#!/bin/sh
# Test whether a specific UTF-8 locale is installed.
+: "${LOCALE_EN_UTF8=en_US.UTF-8}"
: "${LOCALE_FR_UTF8=fr_FR.UTF-8}"
-if test $LOCALE_FR_UTF8 = none; then
+if test "$LOCALE_EN_UTF8" = none && test $LOCALE_FR_UTF8 = none; then
if test -f /usr/bin/localedef; then
- echo "Skipping test: no french Unicode locale is installed"
+ echo "Skipping test: no english or french Unicode locale is installed"
else
- echo "Skipping test: no french Unicode locale is supported"
+ echo "Skipping test: no english or french Unicode locale is supported"
fi
exit 77
fi
-LC_ALL=$LOCALE_FR_UTF8 \
+# It's sufficient to test in one of the two locales.
+if test $LOCALE_FR_UTF8 != none; then
+ testlocale=$LOCALE_FR_UTF8
+else
+ testlocale="$LOCALE_EN_UTF8"
+fi
+
+LC_ALL="$testlocale" \
${CHECKER} ./test-mbsspn${EXEEXT}
#!/bin/sh
# Test whether a specific UTF-8 locale is installed.
+: "${LOCALE_EN_UTF8=en_US.UTF-8}"
: "${LOCALE_FR_UTF8=fr_FR.UTF-8}"
-if test $LOCALE_FR_UTF8 = none; then
+if test "$LOCALE_EN_UTF8" = none && test $LOCALE_FR_UTF8 = none; then
if test -f /usr/bin/localedef; then
- echo "Skipping test: no french Unicode locale is installed"
+ echo "Skipping test: no english or french Unicode locale is installed"
else
- echo "Skipping test: no french Unicode locale is supported"
+ echo "Skipping test: no english or french Unicode locale is supported"
fi
exit 77
fi
-LC_ALL=$LOCALE_FR_UTF8 \
+# It's sufficient to test in one of the two locales.
+if test $LOCALE_FR_UTF8 != none; then
+ testlocale=$LOCALE_FR_UTF8
+else
+ testlocale="$LOCALE_EN_UTF8"
+fi
+
+LC_ALL="$testlocale" \
${CHECKER} ./test-mbsstr2${EXEEXT}
#!/bin/sh
# Test whether a specific UTF-8 locale is installed.
+: "${LOCALE_EN_UTF8=en_US.UTF-8}"
: "${LOCALE_FR_UTF8=fr_FR.UTF-8}"
-if test $LOCALE_FR_UTF8 = none; then
+if test "$LOCALE_EN_UTF8" = none && test $LOCALE_FR_UTF8 = none; then
if test -f /usr/bin/localedef; then
- echo "Skipping test: no french Unicode locale is installed"
+ echo "Skipping test: no english or french Unicode locale is installed"
else
- echo "Skipping test: no french Unicode locale is supported"
+ echo "Skipping test: no english or french Unicode locale is supported"
fi
exit 77
fi
-LC_ALL=$LOCALE_FR_UTF8 \
+# It's sufficient to test in one of the two locales.
+if test $LOCALE_FR_UTF8 != none; then
+ testlocale=$LOCALE_FR_UTF8
+else
+ testlocale="$LOCALE_EN_UTF8"
+fi
+
+LC_ALL="$testlocale" \
${CHECKER} ./test-mbstoc32s${EXEEXT} 3
#!/bin/sh
# Test whether a specific UTF-8 locale is installed.
+: "${LOCALE_EN_UTF8=en_US.UTF-8}"
: "${LOCALE_FR_UTF8=fr_FR.UTF-8}"
-if test $LOCALE_FR_UTF8 = none; then
+if test "$LOCALE_EN_UTF8" = none && test $LOCALE_FR_UTF8 = none; then
if test -f /usr/bin/localedef; then
- echo "Skipping test: no french Unicode locale is installed"
+ echo "Skipping test: no english or french Unicode locale is installed"
else
- echo "Skipping test: no french Unicode locale is supported"
+ echo "Skipping test: no english or french Unicode locale is supported"
fi
exit 77
fi
-LC_ALL=$LOCALE_FR_UTF8 \
+# It's sufficient to test in one of the two locales.
+if test $LOCALE_FR_UTF8 != none; then
+ testlocale=$LOCALE_FR_UTF8
+else
+ testlocale="$LOCALE_EN_UTF8"
+fi
+
+LC_ALL="$testlocale" \
${CHECKER} ./test-mbstowcs${EXEEXT} 3
#!/bin/sh
# Test whether a specific UTF-8 locale is installed.
+: "${LOCALE_EN_UTF8=en_US.UTF-8}"
: "${LOCALE_FR_UTF8=fr_FR.UTF-8}"
-if test $LOCALE_FR_UTF8 = none; then
+if test "$LOCALE_EN_UTF8" = none && test $LOCALE_FR_UTF8 = none; then
if test -f /usr/bin/localedef; then
- echo "Skipping test: no french Unicode locale is installed"
+ echo "Skipping test: no english or french Unicode locale is installed"
else
- echo "Skipping test: no french Unicode locale is supported"
+ echo "Skipping test: no english or french Unicode locale is supported"
fi
exit 77
fi
-LC_ALL=$LOCALE_FR_UTF8 \
+# It's sufficient to test in one of the two locales.
+if test $LOCALE_FR_UTF8 != none; then
+ testlocale=$LOCALE_FR_UTF8
+else
+ testlocale="$LOCALE_EN_UTF8"
+fi
+
+LC_ALL="$testlocale" \
${CHECKER} ./test-mcel${EXEEXT} 3
#!/bin/sh
# Test whether a specific UTF-8 locale is installed.
+: "${LOCALE_EN_UTF8=en_US.UTF-8}"
: "${LOCALE_FR_UTF8=fr_FR.UTF-8}"
-if test $LOCALE_FR_UTF8 = none; then
+if test "$LOCALE_EN_UTF8" = none && test $LOCALE_FR_UTF8 = none; then
if test -f /usr/bin/localedef; then
- echo "Skipping test: no french Unicode locale is installed"
+ echo "Skipping test: no english or french Unicode locale is installed"
else
- echo "Skipping test: no french Unicode locale is supported"
+ echo "Skipping test: no english or french Unicode locale is supported"
fi
exit 77
fi
-LC_ALL=$LOCALE_FR_UTF8 \
+# It's sufficient to test in one of the two locales.
+if test $LOCALE_FR_UTF8 != none; then
+ testlocale=$LOCALE_FR_UTF8
+else
+ testlocale="$LOCALE_EN_UTF8"
+fi
+
+LC_ALL="$testlocale" \
${CHECKER} ./test-trim${EXEEXT} 2
#!/bin/sh
# Test whether a specific UTF-8 locale is installed.
+: "${LOCALE_EN_UTF8=en_US.UTF-8}"
: "${LOCALE_FR_UTF8=fr_FR.UTF-8}"
-if test $LOCALE_FR_UTF8 = none; then
+if test "$LOCALE_EN_UTF8" = none && test $LOCALE_FR_UTF8 = none; then
if test -f /usr/bin/localedef; then
- echo "Skipping test: no french Unicode locale is installed"
+ echo "Skipping test: no english or french Unicode locale is installed"
else
- echo "Skipping test: no french Unicode locale is supported"
+ echo "Skipping test: no english or french Unicode locale is supported"
fi
exit 77
fi
-LC_ALL=$LOCALE_FR_UTF8 \
+# It's sufficient to test in one of the two locales.
+if test $LOCALE_FR_UTF8 != none; then
+ testlocale=$LOCALE_FR_UTF8
+else
+ testlocale="$LOCALE_EN_UTF8"
+fi
+
+LC_ALL="$testlocale" \
${CHECKER} ./test-unicodeio${EXEEXT} 2
fi
# Test whether a specific UTF-8 locale is installed.
+: "${LOCALE_EN_UTF8=en_US.UTF-8}"
: "${LOCALE_FR_UTF8=fr_FR.UTF-8}"
-if test $LOCALE_FR_UTF8 != none; then
- LC_ALL=$LOCALE_FR_UTF8 \
+if test "$LOCALE_EN_UTF8" != none || test $LOCALE_FR_UTF8 != none; then
+ # It's sufficient to test in one of the two locales.
+ if test $LOCALE_FR_UTF8 != none; then
+ testlocale=$LOCALE_FR_UTF8
+ else
+ testlocale="$LOCALE_EN_UTF8"
+ fi
+ LC_ALL="$testlocale" \
${CHECKER} ./test-wcrtomb${EXEEXT} 3 \
|| exit 1
fi
#!/bin/sh
# Test whether a specific UTF-8 locale is installed.
+: "${LOCALE_EN_UTF8=en_US.UTF-8}"
: "${LOCALE_FR_UTF8=fr_FR.UTF-8}"
-if test $LOCALE_FR_UTF8 = none; then
+if test "$LOCALE_EN_UTF8" = none && test $LOCALE_FR_UTF8 = none; then
if test -f /usr/bin/localedef; then
- echo "Skipping test: no french Unicode locale is installed"
+ echo "Skipping test: no english or french Unicode locale is installed"
else
- echo "Skipping test: no french Unicode locale is supported"
+ echo "Skipping test: no english or french Unicode locale is supported"
fi
exit 77
fi
-LC_ALL=$LOCALE_FR_UTF8 \
+# It's sufficient to test in one of the two locales.
+if test $LOCALE_FR_UTF8 != none; then
+ testlocale=$LOCALE_FR_UTF8
+else
+ testlocale="$LOCALE_EN_UTF8"
+fi
+
+LC_ALL="$testlocale" \
${CHECKER} ./test-wcsnrtombs${EXEEXT} 3
#!/bin/sh
# Test whether a specific UTF-8 locale is installed.
+: "${LOCALE_EN_UTF8=en_US.UTF-8}"
: "${LOCALE_FR_UTF8=fr_FR.UTF-8}"
-if test $LOCALE_FR_UTF8 = none; then
+if test "$LOCALE_EN_UTF8" = none && test $LOCALE_FR_UTF8 = none; then
if test -f /usr/bin/localedef; then
- echo "Skipping test: no french Unicode locale is installed"
+ echo "Skipping test: no english or french Unicode locale is installed"
else
- echo "Skipping test: no french Unicode locale is supported"
+ echo "Skipping test: no english or french Unicode locale is supported"
fi
exit 77
fi
-LC_ALL=$LOCALE_FR_UTF8 \
+# It's sufficient to test in one of the two locales.
+if test $LOCALE_FR_UTF8 != none; then
+ testlocale=$LOCALE_FR_UTF8
+else
+ testlocale="$LOCALE_EN_UTF8"
+fi
+
+LC_ALL="$testlocale" \
${CHECKER} ./test-wcsrtombs${EXEEXT} 3