]> Savannah Git Hosting - gnulib.git/commitdiff
tests: Strengthen LC_CTYPE tests on OpenBSD, Android, Haiku.
authorBruno Haible <bruno@clisp.org>
Sat, 31 Aug 2024 17:22:37 +0000 (19:22 +0200)
committerBruno Haible <bruno@clisp.org>
Sat, 31 Aug 2024 17:22:37 +0000 (19:22 +0200)
* 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.

105 files changed:
ChangeLog
m4/locale-ar.m4
m4/locale-en.m4 [new file with mode: 0644]
m4/locale-fr.m4
m4/locale-ja.m4
m4/locale-tr.m4
m4/locale-zh.m4
modules/btoc32-tests
modules/btowc-tests
modules/c32isalnum-tests
modules/c32isalpha-tests
modules/c32isblank-tests
modules/c32iscntrl-tests
modules/c32isdigit-tests
modules/c32isgraph-tests
modules/c32islower-tests
modules/c32isprint-tests
modules/c32ispunct-tests
modules/c32isspace-tests
modules/c32isupper-tests
modules/c32isxdigit-tests
modules/c32rtomb-tests
modules/c32snrtombs-tests
modules/c32srtombs-tests
modules/c32stombs-tests
modules/c32tolower-tests
modules/c32toupper-tests
modules/fnmatch-tests
modules/iswdigit-tests
modules/iswxdigit-tests
modules/mbmemcasecmp-tests
modules/mbmemcasecoll-tests
modules/mbrlen-tests
modules/mbrtoc16-tests
modules/mbrtoc32-tests
modules/mbrtowc-tests
modules/mbscasestr-tests
modules/mbscspn-tests
modules/mbsinit-tests
modules/mbslen-tests
modules/mbsnlen-tests
modules/mbsnrtoc32s-tests
modules/mbsnrtowcs-tests
modules/mbspbrk-tests
modules/mbsrtoc32s-tests
modules/mbsrtowcs-tests
modules/mbsspn-tests
modules/mbsstr-tests
modules/mbstoc32s-tests
modules/mbstowcs-tests
modules/mcel-tests
modules/trim-tests
modules/unicodeio-tests
modules/wcrtomb-tests
modules/wcsnrtombs-tests
modules/wcsrtombs-tests
tests/test-btoc32-3.sh
tests/test-btowc-3.sh
tests/test-c32isalnum.sh
tests/test-c32isalpha.sh
tests/test-c32isblank.sh
tests/test-c32iscntrl.sh
tests/test-c32isdigit.sh
tests/test-c32isgraph.sh
tests/test-c32islower.sh
tests/test-c32isprint.sh
tests/test-c32ispunct.sh
tests/test-c32isspace.sh
tests/test-c32isupper.sh
tests/test-c32isxdigit.sh
tests/test-c32rtomb.sh
tests/test-c32snrtombs-3.sh
tests/test-c32srtombs-3.sh
tests/test-c32stombs-3.sh
tests/test-c32tolower.sh
tests/test-c32toupper.sh
tests/test-fnmatch-3.sh
tests/test-iswdigit.sh
tests/test-iswxdigit.sh
tests/test-mbmemcasecmp-3.sh
tests/test-mbmemcasecoll-3.sh
tests/test-mbrlen-3.sh
tests/test-mbrtoc16-3.sh
tests/test-mbrtoc32-3.sh
tests/test-mbrtowc-3.sh
tests/test-mbscasestr2.sh
tests/test-mbscspn.sh
tests/test-mbsinit.sh
tests/test-mbslen.sh
tests/test-mbsnlen.sh
tests/test-mbsnrtoc32s-3.sh
tests/test-mbsnrtowcs-3.sh
tests/test-mbspbrk.sh
tests/test-mbsrtoc32s-3.sh
tests/test-mbsrtowcs-3.sh
tests/test-mbsspn.sh
tests/test-mbsstr2.sh
tests/test-mbstoc32s-3.sh
tests/test-mbstowcs-3.sh
tests/test-mcel-3.sh
tests/test-trim2.sh
tests/test-unicodeio2.sh
tests/test-wcrtomb.sh
tests/test-wcsnrtombs-3.sh
tests/test-wcsrtombs-3.sh

index 8d2cfd12f6ab360ee7dcd349e531634ce85b9e5c..5cd4d0671e28b45d214f9b0560ec055f4f4a92f8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,114 @@
+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.
index 8efdb7789b8584882fc895bca5f0d9f8407c1aaf..2dffa1dff40faabc1e9e3fd1efee4044a15dafc8 100644 (file)
@@ -1,5 +1,5 @@
 # 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,
@@ -65,10 +65,11 @@ int main () {
     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
diff --git a/m4/locale-en.m4 b/m4/locale-en.m4
new file mode 100644 (file)
index 0000000..39d08a2
--- /dev/null
@@ -0,0 +1,137 @@
+# 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])
+])
index f8d7c543e0ab1e057e2ab931c14693db796d4a3c..3832c10d36c238f9f2932e19cd40809882f1f27e 100644 (file)
@@ -1,5 +1,5 @@
 # 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,
@@ -71,8 +71,9 @@ int main () {
   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;
@@ -82,10 +83,11 @@ int main () {
     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.
@@ -214,8 +216,9 @@ int main () {
 #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;
@@ -224,10 +227,11 @@ int main () {
         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.
index 8423bcb9721968b6dfc1ec57d59ed51c4c285c81..b94cd7ae4d0eb3cc9dbb0094ef0349a63af2fc63 100644 (file)
@@ -1,5 +1,5 @@
 # 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,
@@ -86,10 +86,11 @@ int main ()
     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
index 1160f62a2f7f79ac2c403dc15d25ad15bd3803f7..a3ead69b3cda3dad2c118ac57c1a5e6bef5e9c7e 100644 (file)
@@ -1,5 +1,5 @@
 # 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,
@@ -79,10 +79,11 @@ int main () {
     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.
index fb9f26ab9f282a0dc13a85d001adae23551c2c48..040cab0c7aa2d5b3e9e78f1db82bd5a797a89b66 100644 (file)
@@ -1,5 +1,5 @@
 # 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,
@@ -101,10 +101,11 @@ int main ()
     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.
index a5ff796d3ec304ee03df65173855162cf928c85c..e29abca523658b03e76d9afc86f349c5dae8d3e1 100644 (file)
@@ -5,6 +5,7 @@ tests/test-btoc32-3.sh
 tests/test-btoc32.c
 tests/signature.h
 tests/macros.h
+m4/locale-en.m4
 m4/locale-fr.m4
 m4/codeset.m4
 
@@ -12,11 +13,15 @@ Depends-on:
 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)
index efb86ce8a102894395524d4ac8630120e7f4eac0..37bec41ab644112ff1f3c9f7bfb7ee551c1c449c 100644 (file)
@@ -5,6 +5,7 @@ tests/test-btowc-3.sh
 tests/test-btowc.c
 tests/signature.h
 tests/macros.h
+m4/locale-en.m4
 m4/locale-fr.m4
 m4/codeset.m4
 
@@ -12,11 +13,15 @@ Depends-on:
 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)
index 3c8c52a5a9384657c8cb3269b004c987993c27eb..3dc039f31f670f1c5548597cab51f75d7ffb0623 100644 (file)
@@ -3,6 +3,7 @@ tests/test-c32isalnum.sh
 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
@@ -13,6 +14,7 @@ mbrtoc32
 setlocale
 
 configure.ac:
+gt_LOCALE_EN_UTF8
 gt_LOCALE_FR
 gt_LOCALE_FR_UTF8
 gt_LOCALE_JA
@@ -21,6 +23,7 @@ gt_LOCALE_ZH_CN
 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@' \
index 22efbd68423875ce18f52c63b9086467f1fde6b5..f488d0125162179b7a8806ab0376c0ad6e9bbdcb 100644 (file)
@@ -3,6 +3,7 @@ tests/test-c32isalpha.sh
 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
@@ -14,6 +15,7 @@ mbrtoc32
 setlocale
 
 configure.ac:
+gt_LOCALE_EN_UTF8
 gt_LOCALE_FR
 gt_LOCALE_FR_UTF8
 gt_LOCALE_JA
@@ -23,6 +25,7 @@ gl_MUSL_LIBC
 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@' \
index ffcab15a9a2c5738ecb931a4c590d769c314e066..95aa7530cb3be7852dcbdb87c81c895a8acce9cb 100644 (file)
@@ -3,6 +3,7 @@ tests/test-c32isblank.sh
 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
@@ -13,6 +14,7 @@ mbrtoc32
 setlocale
 
 configure.ac:
+gt_LOCALE_EN_UTF8
 gt_LOCALE_FR
 gt_LOCALE_FR_UTF8
 gt_LOCALE_JA
@@ -21,6 +23,7 @@ gt_LOCALE_ZH_CN
 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@' \
index 9a25ba93605f5730a74647e4db3425688db548c5..fbb162335550c707de8ca9106530382a88ec9a3e 100644 (file)
@@ -3,6 +3,7 @@ tests/test-c32iscntrl.sh
 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
@@ -14,6 +15,7 @@ mbrtoc32
 setlocale
 
 configure.ac:
+gt_LOCALE_EN_UTF8
 gt_LOCALE_FR
 gt_LOCALE_FR_UTF8
 gt_LOCALE_JA
@@ -23,6 +25,7 @@ gl_MUSL_LIBC
 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@' \
index bbb70cd352cc2224b67db8b15d683a9153ed7775..97e577a4872f46f7b443e845d122734092149605 100644 (file)
@@ -3,6 +3,7 @@ tests/test-c32isdigit.sh
 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
@@ -13,6 +14,7 @@ mbrtoc32
 setlocale
 
 configure.ac:
+gt_LOCALE_EN_UTF8
 gt_LOCALE_FR
 gt_LOCALE_FR_UTF8
 gt_LOCALE_JA
@@ -21,6 +23,7 @@ gt_LOCALE_ZH_CN
 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@' \
index af717306e075c492ea8e9bf505bc493cd59e678a..56c5665786f2e133969ac5fbf2b9ca34a87975c4 100644 (file)
@@ -3,6 +3,7 @@ tests/test-c32isgraph.sh
 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
@@ -14,6 +15,7 @@ mbrtoc32
 setlocale
 
 configure.ac:
+gt_LOCALE_EN_UTF8
 gt_LOCALE_FR
 gt_LOCALE_FR_UTF8
 gt_LOCALE_JA
@@ -23,6 +25,7 @@ gl_MUSL_LIBC
 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@' \
index e3dac1d2d962b7677346b726f23ef221df82972a..9a6dc8b817673b14790d74af03d5f237543c2240 100644 (file)
@@ -3,6 +3,7 @@ tests/test-c32islower.sh
 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
@@ -14,6 +15,7 @@ mbrtoc32
 setlocale
 
 configure.ac:
+gt_LOCALE_EN_UTF8
 gt_LOCALE_FR
 gt_LOCALE_FR_UTF8
 gt_LOCALE_JA
@@ -23,6 +25,7 @@ gl_MUSL_LIBC
 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@' \
index f421f1b9d5ebdd1afed8c85425c8f4672db27d11..91058d3efb03fe89b1db2304f9b3959fe2001087 100644 (file)
@@ -3,6 +3,7 @@ tests/test-c32isprint.sh
 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
@@ -14,6 +15,7 @@ mbrtoc32
 setlocale
 
 configure.ac:
+gt_LOCALE_EN_UTF8
 gt_LOCALE_FR
 gt_LOCALE_FR_UTF8
 gt_LOCALE_JA
@@ -23,6 +25,7 @@ gl_MUSL_LIBC
 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@' \
index 15297210b72eb23bc366d96fc53741f9cb0505f6..e7f6d7e190f3b900208ae5e7e22c44f184140215 100644 (file)
@@ -3,6 +3,7 @@ tests/test-c32ispunct.sh
 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
@@ -13,6 +14,7 @@ mbrtoc32
 setlocale
 
 configure.ac:
+gt_LOCALE_EN_UTF8
 gt_LOCALE_FR
 gt_LOCALE_FR_UTF8
 gt_LOCALE_JA
@@ -21,6 +23,7 @@ gt_LOCALE_ZH_CN
 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@' \
index 6df45cd9972a3e56745c9bb9fdf27fea63ebcfb6..664a1fb3beae434b7eb9eca552f7b45b856de971 100644 (file)
@@ -3,6 +3,7 @@ tests/test-c32isspace.sh
 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
@@ -13,6 +14,7 @@ mbrtoc32
 setlocale
 
 configure.ac:
+gt_LOCALE_EN_UTF8
 gt_LOCALE_FR
 gt_LOCALE_FR_UTF8
 gt_LOCALE_JA
@@ -21,6 +23,7 @@ gt_LOCALE_ZH_CN
 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@' \
index e3584c8bd5d2fb93271954f85874ea211d0aecc6..8436cc16f615c93cd6d80553d5596b6adce835a5 100644 (file)
@@ -3,6 +3,7 @@ tests/test-c32isupper.sh
 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
@@ -13,6 +14,7 @@ mbrtoc32
 setlocale
 
 configure.ac:
+gt_LOCALE_EN_UTF8
 gt_LOCALE_FR
 gt_LOCALE_FR_UTF8
 gt_LOCALE_JA
@@ -21,6 +23,7 @@ gt_LOCALE_ZH_CN
 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@' \
index 7d119dbfe157dc0552116b8bcab6229bc1edb58b..480a3bc2d06ea7f55c4d70d0a3014231fe47c966 100644 (file)
@@ -3,6 +3,7 @@ tests/test-c32isxdigit.sh
 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
@@ -13,6 +14,7 @@ mbrtoc32
 setlocale
 
 configure.ac:
+gt_LOCALE_EN_UTF8
 gt_LOCALE_FR
 gt_LOCALE_FR_UTF8
 gt_LOCALE_JA
@@ -21,6 +23,7 @@ gt_LOCALE_ZH_CN
 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@' \
index 4051a212c9357d629ebb8bd940e830fe98a6b84e..0aaa6626b7d2393ce3a1d7efa2a373b69f29912e 100644 (file)
@@ -11,6 +11,7 @@ tests/test-c32rtomb-w32-8.sh
 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
@@ -23,6 +24,7 @@ setlocale
 localcharset
 
 configure.ac:
+gt_LOCALE_EN_UTF8
 gt_LOCALE_FR
 gt_LOCALE_FR_UTF8
 gt_LOCALE_JA
@@ -35,6 +37,7 @@ TESTS += \
   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@' \
index 85250e347cdd5b9913eb2a3962f84c1954484f5b..d9aa7b0979bfd195a635ffb5fb43e7b5f6bb3da8 100644 (file)
@@ -6,6 +6,7 @@ tests/test-c32snrtombs-5.sh
 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
@@ -16,6 +17,7 @@ setlocale
 mbstoc32s
 
 configure.ac:
+gt_LOCALE_EN_UTF8
 gt_LOCALE_FR
 gt_LOCALE_FR_UTF8
 gt_LOCALE_JA
@@ -24,6 +26,7 @@ gt_LOCALE_ZH_CN
 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@' \
index 888d7324ace15e8fa48091f7faa36a3dd21d72b8..01026ed6d6e0fdeeb04a54c757624dfb71417e15 100644 (file)
@@ -6,6 +6,7 @@ tests/test-c32srtombs-5.sh
 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
@@ -16,6 +17,7 @@ setlocale
 mbstoc32s
 
 configure.ac:
+gt_LOCALE_EN_UTF8
 gt_LOCALE_FR
 gt_LOCALE_FR_UTF8
 gt_LOCALE_JA
@@ -24,6 +26,7 @@ gt_LOCALE_ZH_CN
 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@' \
index b9fe1a346ea1e2f6bd6bde31e4fbd0c112a0bec5..8b0d47fa02fed5d38045fc677c547284201604ee 100644 (file)
@@ -6,6 +6,7 @@ tests/test-c32stombs-5.sh
 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
@@ -16,6 +17,7 @@ setlocale
 mbstoc32s
 
 configure.ac:
+gt_LOCALE_EN_UTF8
 gt_LOCALE_FR
 gt_LOCALE_FR_UTF8
 gt_LOCALE_JA
@@ -24,6 +26,7 @@ gt_LOCALE_ZH_CN
 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@' \
index 48f53e42cfa6af5688b7a43e3ee3b0b94b5f1f3e..74aa972f1e7b13a13088731a6940cb44445ef8af 100644 (file)
@@ -3,6 +3,7 @@ tests/test-c32tolower.sh
 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
@@ -14,6 +15,7 @@ c32rtomb
 setlocale
 
 configure.ac:
+gt_LOCALE_EN_UTF8
 gt_LOCALE_FR
 gt_LOCALE_FR_UTF8
 gt_LOCALE_JA
@@ -22,6 +24,7 @@ gt_LOCALE_ZH_CN
 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@' \
index 701acc1c2e1a0fa9a09199e3158212d8e7767913..18bb562af5038c826348c6c0c06b0dabec34aa2a 100644 (file)
@@ -3,6 +3,7 @@ tests/test-c32toupper.sh
 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
@@ -15,6 +16,7 @@ c32rtomb
 setlocale
 
 configure.ac:
+gt_LOCALE_EN_UTF8
 gt_LOCALE_FR
 gt_LOCALE_FR_UTF8
 gt_LOCALE_JA
@@ -24,6 +26,7 @@ gl_MUSL_LIBC
 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@' \
index 8dbb7330edd4861e6b92fa0df5fea8055d4b34d6..e312c8063d6d8b8696ef88878cbc8d5c74186871 100644 (file)
@@ -15,6 +15,7 @@ tests/test-fnmatch-w32-8.sh
 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
@@ -27,6 +28,7 @@ mbrtowc
 wctype-h
 
 configure.ac:
+gt_LOCALE_EN_UTF8
 gt_LOCALE_FR
 gt_LOCALE_FR_UTF8
 gt_LOCALE_JA
@@ -40,6 +42,7 @@ TESTS += \
   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@' \
index c224ca651657c355db8d054ed1dbfeffa84222d3..c2b15d610723efdc150960ce8936eecdfd617fae 100644 (file)
@@ -3,6 +3,7 @@ tests/test-iswdigit.sh
 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
@@ -13,6 +14,7 @@ mbrtowc
 setlocale
 
 configure.ac:
+gt_LOCALE_EN_UTF8
 gt_LOCALE_FR
 gt_LOCALE_FR_UTF8
 gt_LOCALE_JA
@@ -21,6 +23,7 @@ gt_LOCALE_ZH_CN
 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@' \
index c2f9f652a832f152b1fa3db736b2bf90731f4619..46db704b6a18fed172eedeee1129d132f7910099 100644 (file)
@@ -3,6 +3,7 @@ tests/test-iswxdigit.sh
 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
@@ -13,6 +14,7 @@ mbrtowc
 setlocale
 
 configure.ac:
+gt_LOCALE_EN_UTF8
 gt_LOCALE_FR
 gt_LOCALE_FR_UTF8
 gt_LOCALE_JA
@@ -21,6 +23,7 @@ gt_LOCALE_ZH_CN
 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@' \
index 06b20be337d200865bd5a3882e878ec716a89c9a..0a75c7e22d0a96e5a834f378c7e5a128c67b09ce 100644 (file)
@@ -5,6 +5,7 @@ tests/test-mbmemcasecmp-4.sh
 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
@@ -16,6 +17,7 @@ mbrtowc
 wctype-h
 
 configure.ac:
+gt_LOCALE_EN_UTF8
 gt_LOCALE_FR
 gt_LOCALE_FR_UTF8
 gt_LOCALE_TR_UTF8
@@ -23,6 +25,7 @@ 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@'
index 7486cbf333434b4749146508ec3431bc55d7ea94..713749f51d711230e00d62ab507eceef7bb7700d 100644 (file)
@@ -5,6 +5,7 @@ tests/test-mbmemcasecoll-4.sh
 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
@@ -16,6 +17,7 @@ mbrtowc
 wctype-h
 
 configure.ac:
+gt_LOCALE_EN_UTF8
 gt_LOCALE_FR
 gt_LOCALE_FR_UTF8
 gt_LOCALE_TR_UTF8
@@ -23,6 +25,7 @@ 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@'
index 18878eb1d14ba481a594eb93bec0bf05eba2052a..894fd09b44a25cd77faaa0c05486c8f08656a079 100644 (file)
@@ -15,6 +15,7 @@ tests/test-mbrlen-w32-8.sh
 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
@@ -27,6 +28,7 @@ setlocale
 localcharset
 
 configure.ac:
+gt_LOCALE_EN_UTF8
 gt_LOCALE_FR
 gt_LOCALE_FR_UTF8
 gt_LOCALE_JA
@@ -40,6 +42,7 @@ TESTS += \
   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@' \
index 298d945bc30000ac075d1dab7363487f3d9eb1df..1982eaca708254a3b53862ec74bac624a70e8336 100644 (file)
@@ -15,6 +15,7 @@ tests/test-mbrtoc16-w32-8.sh
 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
@@ -28,6 +29,7 @@ setlocale
 localcharset
 
 configure.ac:
+gt_LOCALE_EN_UTF8
 gt_LOCALE_FR
 gt_LOCALE_FR_UTF8
 gt_LOCALE_JA
@@ -41,6 +43,7 @@ TESTS += \
   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@' \
index db052209da88521552087befd7e331b9d7c12fd8..b3c70b8e1f9052914289c82b763223a04bd49f22 100644 (file)
@@ -15,6 +15,7 @@ tests/test-mbrtoc32-w32-8.sh
 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
@@ -28,6 +29,7 @@ setlocale
 localcharset
 
 configure.ac:
+gt_LOCALE_EN_UTF8
 gt_LOCALE_FR
 gt_LOCALE_FR_UTF8
 gt_LOCALE_JA
@@ -41,6 +43,7 @@ TESTS += \
   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@' \
index af02c94016afbda54f30599775a8c066d44604de..d152e2e472f7130664c628264375de51a7f6767a 100644 (file)
@@ -15,6 +15,7 @@ tests/test-mbrtowc-w32-8.sh
 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
@@ -27,6 +28,7 @@ setlocale
 localcharset
 
 configure.ac:
+gt_LOCALE_EN_UTF8
 gt_LOCALE_FR
 gt_LOCALE_FR_UTF8
 gt_LOCALE_JA
@@ -40,6 +42,7 @@ TESTS += \
   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@' \
index 867d2153e4908581e12e6da75cc96fea69c04183..e172ea47b383dc944e3408239cd77e6040a6a75f 100644 (file)
@@ -7,6 +7,7 @@ tests/test-mbscasestr3.c
 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
@@ -16,13 +17,18 @@ Depends-on:
 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)
index 4d8cb013ea6fd8537b9d86874cd52ab54b9b4565..88ad1987dfb1a98a9a5bb9dd313c278165467200 100644 (file)
@@ -2,6 +2,7 @@ Files:
 tests/test-mbscspn.sh
 tests/test-mbscspn.c
 tests/macros.h
+m4/locale-en.m4
 m4/locale-fr.m4
 m4/codeset.m4
 
@@ -9,10 +10,13 @@ Depends-on:
 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)
index 15f21581c70a586c49c23a2dc448b4d45687a54f..c06609e97d2b4589a5d1b3ce9418272380692dc6 100644 (file)
@@ -3,6 +3,7 @@ tests/test-mbsinit.sh
 tests/test-mbsinit.c
 tests/signature.h
 tests/macros.h
+m4/locale-en.m4
 m4/locale-fr.m4
 m4/codeset.m4
 
@@ -11,10 +12,13 @@ mbrtowc
 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)
index 0d21eddab80a9732afd9f71cdab7ec2b9c4b94f2..d2c6cc91f1b113d8405c793ac7c90c0abfcf4c19 100644 (file)
@@ -2,6 +2,7 @@ Files:
 tests/test-mbslen.sh
 tests/test-mbslen.c
 tests/macros.h
+m4/locale-en.m4
 m4/locale-fr.m4
 m4/codeset.m4
 
@@ -9,10 +10,13 @@ Depends-on:
 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)
index d6fad3c8cb1183902368dca9b2b64d1f0e36a7df..77b389204d742661ccf6e6862a57e990e99dd1ec 100644 (file)
@@ -2,6 +2,7 @@ Files:
 tests/test-mbsnlen.sh
 tests/test-mbsnlen.c
 tests/macros.h
+m4/locale-en.m4
 m4/locale-fr.m4
 m4/codeset.m4
 
@@ -9,10 +10,13 @@ Depends-on:
 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)
index bb02c10852e1857aaac075ef6f8d4ccc3c7a2c9e..e5c238a5cd92f63e765380b13a6ce9552e5602a4 100644 (file)
@@ -7,6 +7,7 @@ tests/test-mbsnrtoc32s-5.sh
 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
@@ -20,6 +21,7 @@ c32tob
 setlocale
 
 configure.ac:
+gt_LOCALE_EN_UTF8
 gt_LOCALE_FR
 gt_LOCALE_FR_UTF8
 gt_LOCALE_JA
@@ -30,6 +32,7 @@ TESTS += \
   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@' \
index 5ab84b6c71cc238a1aeefff891b3dcb143348bbd..9e84836401aeafbaf1bbac2e66c4a549ea4bff92 100644 (file)
@@ -7,6 +7,7 @@ tests/test-mbsnrtowcs-5.sh
 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
@@ -19,6 +20,7 @@ wctob
 setlocale
 
 configure.ac:
+gt_LOCALE_EN_UTF8
 gt_LOCALE_FR
 gt_LOCALE_FR_UTF8
 gt_LOCALE_JA
@@ -29,6 +31,7 @@ TESTS += \
   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@' \
index 9ca44124cb09e5e7e999ff451a279b4458df450d..83c40afae3b0112a3e5fa5c4b2693224beffe319 100644 (file)
@@ -2,6 +2,7 @@ Files:
 tests/test-mbspbrk.sh
 tests/test-mbspbrk.c
 tests/macros.h
+m4/locale-en.m4
 m4/locale-fr.m4
 m4/codeset.m4
 
@@ -9,10 +10,13 @@ Depends-on:
 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)
index 08518675187d07dbea76989fecf98dfcda4dbf2e..f0cd5441cbe39aba133303b3971a74d255b8abc7 100644 (file)
@@ -7,6 +7,7 @@ tests/test-mbsrtoc32s-5.sh
 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
@@ -20,6 +21,7 @@ c32tob
 setlocale
 
 configure.ac:
+gt_LOCALE_EN_UTF8
 gt_LOCALE_FR
 gt_LOCALE_FR_UTF8
 gt_LOCALE_JA
@@ -30,6 +32,7 @@ TESTS += \
   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@' \
index ec7c5c9f6afa358c8d1801f79da756f22c60dcb2..6e98690a00414a9164f5d81bc20bf958d1f3fda6 100644 (file)
@@ -7,6 +7,7 @@ tests/test-mbsrtowcs-5.sh
 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
@@ -19,6 +20,7 @@ wctob
 setlocale
 
 configure.ac:
+gt_LOCALE_EN_UTF8
 gt_LOCALE_FR
 gt_LOCALE_FR_UTF8
 gt_LOCALE_JA
@@ -29,6 +31,7 @@ TESTS += \
   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@' \
index d720e47bd9df82400fd454cddafe9d35650fa805..d1a8c45c3a5381da660ffd48d459134d20f106cb 100644 (file)
@@ -2,6 +2,7 @@ Files:
 tests/test-mbsspn.sh
 tests/test-mbsspn.c
 tests/macros.h
+m4/locale-en.m4
 m4/locale-fr.m4
 m4/codeset.m4
 
@@ -9,10 +10,13 @@ Depends-on:
 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)
index 34d6fa89b6a5145c4c03f1c6b0c909f9708b4605..871f2399b13ec18e77a0acb375bde34356bbc2f1 100644 (file)
@@ -5,6 +5,7 @@ tests/test-mbsstr2.c
 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
@@ -13,12 +14,16 @@ Depends-on:
 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)
index f7f6af8aa51d3b3eafd87951a48e66cf3ef31ab7..df043854138e389b9e39897aa2f0b29a58689b93 100644 (file)
@@ -7,6 +7,7 @@ tests/test-mbstoc32s-5.sh
 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
@@ -18,6 +19,7 @@ c32tob
 setlocale
 
 configure.ac:
+gt_LOCALE_EN_UTF8
 gt_LOCALE_FR
 gt_LOCALE_FR_UTF8
 gt_LOCALE_JA
@@ -28,6 +30,7 @@ TESTS += \
   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@' \
index fa66f816fae404035dff9cdd85c1983bb46ccae2..92724bb936a91c9be1ebc20768ea40b7b3727ca7 100644 (file)
@@ -7,6 +7,7 @@ tests/test-mbstowcs-5.sh
 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
@@ -19,6 +20,7 @@ wctob
 setlocale
 
 configure.ac:
+gt_LOCALE_EN_UTF8
 gt_LOCALE_FR
 gt_LOCALE_FR_UTF8
 gt_LOCALE_JA
@@ -29,6 +31,7 @@ TESTS += \
   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@' \
index cc993657d975cf6e9b3737b0179e707c22f7fe30..9cc6913252eef9c6b9f01f90c5cf9380692f7aa4 100644 (file)
@@ -6,6 +6,7 @@ tests/test-mcel-4.sh
 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
@@ -15,6 +16,7 @@ Depends-on:
 setlocale
 
 configure.ac:
+gt_LOCALE_EN_UTF8
 gt_LOCALE_FR
 gt_LOCALE_FR_UTF8
 gt_LOCALE_JA
@@ -24,6 +26,7 @@ Makefile.am:
 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@' \
index 5b04ceb06202d01cee598725ad38bbab6126e782..8780368f4ec7b0933a5b4ca05802e0dcd9db8dc2 100644 (file)
@@ -4,6 +4,7 @@ tests/test-trim2.sh
 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
@@ -12,12 +13,14 @@ Depends-on:
 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
index 0a7d57bd5c32797383c0f66e6e48a40e25fbc9cf..79ae6ed67daf711741a38657e5e9f63f303530c3 100644 (file)
@@ -4,6 +4,7 @@ tests/test-unicodeio2.sh
 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
@@ -13,12 +14,14 @@ setlocale
 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
index 3baa3f30c54ead0c8a2fb61417e1cd48cb94488f..ea8f439d17ff5fb114dcbc11138d2279bbce50a4 100644 (file)
@@ -11,6 +11,7 @@ tests/test-wcrtomb-w32-8.sh
 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
@@ -22,6 +23,7 @@ setlocale
 localcharset
 
 configure.ac:
+gt_LOCALE_EN_UTF8
 gt_LOCALE_FR
 gt_LOCALE_FR_UTF8
 gt_LOCALE_JA
@@ -34,6 +36,7 @@ TESTS += \
   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@' \
index 04ec77eff669ca2cde0bd69b07d66abd457e1326..9b8d9ff0beab141a899de0989db925535a371d11 100644 (file)
@@ -6,6 +6,7 @@ tests/test-wcsnrtombs-5.sh
 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
@@ -15,6 +16,7 @@ Depends-on:
 setlocale
 
 configure.ac:
+gt_LOCALE_EN_UTF8
 gt_LOCALE_FR
 gt_LOCALE_FR_UTF8
 gt_LOCALE_JA
@@ -25,6 +27,7 @@ TESTS += \
   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@' \
index b042a52973caaeadfe6bd52d868cc0aa4245783e..514138efbb739e7b45b0357f47059f23e48d03ac 100644 (file)
@@ -6,6 +6,7 @@ tests/test-wcsrtombs-5.sh
 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
@@ -15,6 +16,7 @@ Depends-on:
 setlocale
 
 configure.ac:
+gt_LOCALE_EN_UTF8
 gt_LOCALE_FR
 gt_LOCALE_FR_UTF8
 gt_LOCALE_JA
@@ -25,6 +27,7 @@ TESTS += \
   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@' \
index 8c6b180369d1780391b2862a6964feb6a2e903e5..924f62b491c3fd776135b21e59af33c173b8912a 100755 (executable)
@@ -1,15 +1,23 @@
 #!/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
index 4124476564d799d05d07d6c5a4b76114a4668f2c..1d13beafaa440e8612a7d8f04978202a99114522 100755 (executable)
@@ -1,15 +1,23 @@
 #!/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
index df94aaded01e2eee52faa6538c49063cc1ff46a5..dfc354ca682616bf927baddf4f801839bd2a5b84 100755 (executable)
@@ -21,9 +21,16 @@ if test $LOCALE_JA != none; then
 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
index 11c896fa60bd9d77c8e005400e48a914acdb7959..13e82ac629421a163ceddd1179170b32e0e73627 100755 (executable)
@@ -21,9 +21,16 @@ if test $LOCALE_JA != none; then
 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
index fe5f9b86bfd1989ab161a5b8a7f2e6b7dd56ca57..695ec4447b62ee8ba41c80749f60adfd1d23495a 100755 (executable)
@@ -21,9 +21,16 @@ if test $LOCALE_JA != none; then
 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
index b27747c726fc5544efd561e4be6e5f0fceb8e0c3..00540cfad3febc030cccd9d94194f76ab1b7229f 100755 (executable)
@@ -21,9 +21,16 @@ if test $LOCALE_JA != none; then
 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
index 158d36287281588aa773b9510452323ad55dc4d4..2260c42ad38429dad7a43416856c5fb1dc315fb3 100755 (executable)
@@ -21,9 +21,16 @@ if test $LOCALE_JA != none; then
 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
index be760fb2f37e8c58a9d9ee2b4bb949760e00baab..f4c0d43f8290cb039f7e773984a0f9ca019ce326 100755 (executable)
@@ -21,9 +21,16 @@ if test $LOCALE_JA != none; then
 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
index f8b9840ce021995f4411602f47e7edd811073d30..31953357e8b5be2290f6e790c8cca391fe993af3 100755 (executable)
@@ -21,9 +21,16 @@ if test $LOCALE_JA != none; then
 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
index d455413ba3c31ef40940faa2d166da8fe0f20347..0689c22820ac84501df8a3091412f811e223132c 100755 (executable)
@@ -21,9 +21,16 @@ if test $LOCALE_JA != none; then
 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
index d818bcf7341ff71a5e5a3a96186e825a53cf0346..7f8ab0b1910d131983e82bf0114d9ef01fd61d50 100755 (executable)
@@ -21,9 +21,16 @@ if test $LOCALE_JA != none; then
 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
index a704d86bfca1255e1c53f304a2b0a8274574f84a..a8a2c969b6f6bf021ecde2cf0571bffc46caca9a 100755 (executable)
@@ -21,9 +21,16 @@ if test $LOCALE_JA != none; then
 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
index ea3efcb845246c06567e6c19a6c12b7e5e9d1afd..0c2ff6aaee9da0fe61cebc97da1c8dd6be387ae5 100755 (executable)
@@ -21,9 +21,16 @@ if test $LOCALE_JA != none; then
 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
index 48f8efa7320ea3662b1a25322cad581ff605ff34..ac99d39c7cb274e12c0901294f728b452111de95 100755 (executable)
@@ -21,9 +21,16 @@ if test $LOCALE_JA != none; then
 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
index e5236c976ab436d940eab52a93572775353c57e5..4fa2c3ba14d0080b6b58236faac67b849abb9180 100755 (executable)
@@ -13,9 +13,16 @@ if test $LOCALE_FR != none; then
 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
index 2a7195e4bf01336dbe7fce16f7ca7ba5b7bad65b..1823ff8a1a8c839cff7b52878d79e6faed30a9cf 100755 (executable)
@@ -1,15 +1,23 @@
 #!/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
index 508a81faa3181c6c8b6e8f6a2bc802f68ede0a6a..9e6824f77fb3c37fb63198a9994aa6e7e711e238 100755 (executable)
@@ -1,15 +1,23 @@
 #!/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
index 42a752fb8ce37757f73bbe263477a8837ce42505..e7c7e1563fb5822380d6bae6a9939acba254bd48 100755 (executable)
@@ -1,15 +1,23 @@
 #!/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
index 02f3e5f655e49e2c6a879184292bc3c398d6e52b..b3a17aecfab91505e859b0408dcea84a2bbd5e27 100755 (executable)
@@ -24,9 +24,16 @@ if test $LOCALE_JA != none; then
 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
index 6eed37d908a1e03dafda1015f0e39388e042f999..6797bd2d5f762a4a7802e44f222672eb5bef916f 100755 (executable)
@@ -24,9 +24,16 @@ if test $LOCALE_JA != none; then
 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
index 7ad5386c8d4b3ed53394b7f4459b1db6a3ea53d9..bd354f9642e74c6f22d567735e72d99ca0e09563 100755 (executable)
@@ -1,15 +1,23 @@
 #!/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
index 142a224f084ee1a608a9ea1350d7aa14dba8aea2..0af6fa3f2b16728d0db1cc0f3647eb59f7375041 100755 (executable)
@@ -21,9 +21,16 @@ if test $LOCALE_JA != none; then
 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
index 9bdaff4ad12558381316f60a36b6f799b56adb17..ffaf865379e9991c9fe4eca12f3dced704c4c462 100755 (executable)
@@ -21,9 +21,16 @@ if test $LOCALE_JA != none; then
 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
index ada26e0aa0871a9265c5416dc677fe07306db91a..8d40f136add372b48b1be584aceddd57ca41e650 100755 (executable)
@@ -1,15 +1,23 @@
 #!/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
index ec64dab190a1824cb01d4c371bb0587578560d69..99582d759cea30cba6ebc8d26aef398e84d1deea 100755 (executable)
@@ -1,15 +1,23 @@
 #!/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
index 976803ade18ad172f2795de871130229f0320537..cd044c4305ba3962c4b9808bd91074f9fb0bc01d 100755 (executable)
@@ -1,15 +1,23 @@
 #!/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
index d4104816cab2d1c1bfdae25dcf5611b182ae38b1..743126d071e8fd8c6ab8a9bf06f76fe4024ec934 100755 (executable)
@@ -1,15 +1,23 @@
 #!/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
index 082bad849fa812a76b8b4b30fe0b05ee6441488c..2ab4cf950ee80563d7e256536d5bea099f31a693 100755 (executable)
@@ -1,15 +1,23 @@
 #!/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
index 36b0023cd5a46831311a313b44f18caef5e8a2cb..15fd47f38f8f9b0bbead75ec7fd7b2e4d23f3ffe 100755 (executable)
@@ -1,15 +1,23 @@
 #!/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
index 3322fb0e265d5fba862e811d45e09be3d4eedafc..b7a45d5bb6d64a715e6a00024ecaee946f990bf9 100755 (executable)
@@ -1,15 +1,23 @@
 #!/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}
index 7dd37e3e3cf12d983ce3fcf04cb4c9fdf43ffbd2..62ad1c3bc83e561b55cd6de7c8df34c9cada7b01 100755 (executable)
@@ -1,15 +1,23 @@
 #!/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}
index 25d4b2e4826251417934429dcb7b60e2bb98464b..448f61b48f0e9c709511969aadd1ce98cae4dbe7 100755 (executable)
@@ -1,15 +1,23 @@
 #!/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}
index 9ba9f0cbac37468d6323a81ff2259845e7754fc1..4cbd3399155bb827b89afdd60bf4dc6d7dc924ee 100755 (executable)
@@ -1,15 +1,23 @@
 #!/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}
index 48fa3f2801c354429a35c588beeb46a90c4a3596..47cabbf6d1c8a25854b0dc5f4066547107c9b70a 100755 (executable)
@@ -1,15 +1,23 @@
 #!/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}
index d81bc5c9579d533d33fe0d6d18bcd6bfaa20bab4..9b5ab1901874ed8a5dbefbb3e0fc6e7a783f989c 100755 (executable)
@@ -1,15 +1,23 @@
 #!/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
index 7c8317a5f2053cbcab90a9ffb1ad39bd51bf100e..17f651fcd56e9af872c04f115f760f6a69038099 100755 (executable)
@@ -1,15 +1,23 @@
 #!/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
index 23c422656f9a8d685c3af63c46e8600ce236995b..b5ab82728f4ec182100ab0aba9fe7a83decd671d 100755 (executable)
@@ -1,15 +1,23 @@
 #!/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}
index 721e8df973662c2668bad8eef782604be3c1eb7e..bb9dd9fe749eb3c5c4412d4f60cdafed8ebff6a7 100755 (executable)
@@ -1,15 +1,23 @@
 #!/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
index 9c7caee5d5ca9009cd793c19671969b59e8fbe9a..95b50293eff37ac2d810bbf57834811e4f3b1e6d 100755 (executable)
@@ -1,15 +1,23 @@
 #!/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
index efc344c553bba3433b79c113c58f7cc07255e061..ba0b98bb3456b59886736e3b2ab57a4d9d975300 100755 (executable)
@@ -1,15 +1,23 @@
 #!/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}
index d1905d61b4748e648d086cc46b555410ee9e2ce2..6aeead7705ea40acbd7af6d06ce81828cf9ec079 100755 (executable)
@@ -1,15 +1,23 @@
 #!/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}
index 0dc4d263e9cb1e6a77dac685f06fa51c8013af04..e1bd9d7f92df23f19b00ea3b7f2178e6e2104b39 100755 (executable)
@@ -1,15 +1,23 @@
 #!/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
index 285605623e95726c362a7ac2026d3eade7641457..6cb3ad8c61178fc4149757f0b482c8b8cb5a2786 100755 (executable)
@@ -1,15 +1,23 @@
 #!/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
index a1f21a7a50cce37d01922383f011b21dd5df5a3d..3702decec99c34cbdb8e1e8cd8084e53d018d3e1 100755 (executable)
@@ -1,15 +1,23 @@
 #!/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
index 1c14bd5d1aadf71b9e791ef9941f0a61f0dafd4a..6f22750d21e530c7f690da83c8ad4e3526e2c401 100755 (executable)
@@ -1,15 +1,23 @@
 #!/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
index f0f197181b5b3b00fe9f6f1eab1376ea272b5eda..d03bee6b9a304671f6d07019afbe0a64eee8edfb 100755 (executable)
@@ -1,15 +1,23 @@
 #!/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
index b4604612bc157f4efdd8ba99e1c0b46f034ce8b9..c9980620da5f26bbe02f24083174ef7b6d459d43 100755 (executable)
@@ -13,9 +13,16 @@ if test $LOCALE_FR != none; then
 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
index 414a43ec89e6e3f30d2b1c0ee4a3fe33ad2374ea..b87e50f4961edf86cf4b648fcd3216e231fdc628 100755 (executable)
@@ -1,15 +1,23 @@
 #!/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
index 477a6b7be62cdf03b196ca284649121d22d9b382..11eb4249197448694874cb0d031fc1e9c6655048 100755 (executable)
@@ -1,15 +1,23 @@
 #!/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