Now it's OK to use this new module in the tests. I'm applying this. Unfortunately, this does not fix the 13 test failures on mingw; still need to investigate.
2011-02-12 Bruno Haible <br...@clisp.org> Avoid setlocale bugs in tests. * modules/btowc (Dependencies): Add setlocale. * modules/c-strcase (Dependencies): Likewise. * modules/mbmemcasecmp (Dependencies): Likewise. * modules/mbmemcasecoll (Dependencies): Likewise. * modules/mbrtowc (Dependencies): Likewise. * modules/mbscasecmp (Dependencies): Likewise. * modules/mbscasestr (Dependencies): Likewise. * modules/mbschr (Dependencies): Likewise. * modules/mbscspn (Dependencies): Likewise. * modules/mbsinit (Dependencies): Likewise. * modules/mbsncasecmp (Dependencies): Likewise. * modules/mbsnrtowcs (Dependencies): Likewise. * modules/mbspbrk (Dependencies): Likewise. * modules/mbspcasecmp (Dependencies): Likewise. * modules/mbsrchr (Dependencies): Likewise. * modules/mbsrtowcs (Dependencies): Likewise. * modules/mbsspn (Dependencies): Likewise. * modules/mbsstr (Dependencies): Likewise. * modules/nl_langinfo (Dependencies): Likewise. * modules/quotearg (Dependencies): Likewise. * modules/unicase/locale-language (Dependencies): Likewise. * modules/unicase/ulc-casecmp (Dependencies): Likewise. * modules/unicase/ulc-casecoll (Dependencies): Likewise. * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise. * modules/unistdio/u8-vasnprintf (Dependencies): Likewise. * modules/unistdio/u16-vasnprintf (Dependencies): Likewise. * modules/unistdio/u32-vasnprintf (Dependencies): Likewise. * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise. * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise. * modules/vasnprintf-posix (Dependencies): Likewise. * modules/wcrtomb (Dependencies): Likewise. * modules/wcsnrtombs (Dependencies): Likewise. * modules/wcsrtombs (Dependencies): Likewise. --- modules/btowc-tests.orig Sat Feb 12 19:06:40 2011 +++ modules/btowc-tests Sat Feb 12 18:26:35 2011 @@ -8,6 +8,7 @@ m4/codeset.m4 Depends-on: +setlocale configure.ac: gt_LOCALE_FR --- modules/c-strcase-tests.orig Sat Feb 12 19:06:40 2011 +++ modules/c-strcase-tests Sat Feb 12 18:26:55 2011 @@ -8,6 +8,7 @@ m4/codeset.m4 Depends-on: +setlocale configure.ac: gt_LOCALE_FR --- modules/mbmemcasecmp-tests.orig Sat Feb 12 19:06:40 2011 +++ modules/mbmemcasecmp-tests Sat Feb 12 18:27:22 2011 @@ -11,6 +11,7 @@ Depends-on: stdbool +setlocale configure.ac: gt_LOCALE_FR --- modules/mbmemcasecoll-tests.orig Sat Feb 12 19:06:40 2011 +++ modules/mbmemcasecoll-tests Sat Feb 12 18:27:29 2011 @@ -11,6 +11,7 @@ Depends-on: stdbool +setlocale configure.ac: gt_LOCALE_FR --- modules/mbrtowc-tests.orig Sat Feb 12 19:06:40 2011 +++ modules/mbrtowc-tests Sat Feb 12 18:27:43 2011 @@ -14,6 +14,7 @@ Depends-on: mbsinit wctob +setlocale configure.ac: gt_LOCALE_FR --- modules/mbscasecmp-tests.orig Sat Feb 12 19:06:40 2011 +++ modules/mbscasecmp-tests Sat Feb 12 18:27:56 2011 @@ -6,6 +6,7 @@ m4/codeset.m4 Depends-on: +setlocale configure.ac: gt_LOCALE_TR_UTF8 --- modules/mbscasestr-tests.orig Sat Feb 12 19:06:40 2011 +++ modules/mbscasestr-tests Sat Feb 12 18:28:07 2011 @@ -13,6 +13,7 @@ m4/codeset.m4 Depends-on: +setlocale configure.ac: gt_LOCALE_FR_UTF8 --- modules/mbschr-tests.orig Sat Feb 12 19:06:41 2011 +++ modules/mbschr-tests Sat Feb 12 18:28:18 2011 @@ -6,6 +6,7 @@ m4/codeset.m4 Depends-on: +setlocale configure.ac: gt_LOCALE_ZH_CN --- modules/mbscspn-tests.orig Sat Feb 12 19:06:41 2011 +++ modules/mbscspn-tests Sat Feb 12 18:28:28 2011 @@ -6,6 +6,7 @@ m4/codeset.m4 Depends-on: +setlocale configure.ac: gt_LOCALE_FR_UTF8 --- modules/mbsinit-tests.orig Sat Feb 12 19:06:41 2011 +++ modules/mbsinit-tests Sat Feb 12 18:28:43 2011 @@ -8,6 +8,7 @@ Depends-on: mbrtowc +setlocale configure.ac: gt_LOCALE_FR_UTF8 --- modules/mbsncasecmp-tests.orig Sat Feb 12 19:06:41 2011 +++ modules/mbsncasecmp-tests Sat Feb 12 18:28:53 2011 @@ -6,6 +6,7 @@ m4/codeset.m4 Depends-on: +setlocale configure.ac: gt_LOCALE_TR_UTF8 --- modules/mbsnrtowcs-tests.orig Sat Feb 12 19:06:41 2011 +++ modules/mbsnrtowcs-tests Sat Feb 12 18:29:06 2011 @@ -15,6 +15,7 @@ mbrtowc mbsinit wctob +setlocale configure.ac: gt_LOCALE_FR --- modules/mbspbrk-tests.orig Sat Feb 12 19:06:41 2011 +++ modules/mbspbrk-tests Sat Feb 12 18:29:27 2011 @@ -6,6 +6,7 @@ m4/codeset.m4 Depends-on: +setlocale configure.ac: gt_LOCALE_FR_UTF8 --- modules/mbspcasecmp-tests.orig Sat Feb 12 19:06:41 2011 +++ modules/mbspcasecmp-tests Sat Feb 12 18:29:36 2011 @@ -6,6 +6,7 @@ m4/codeset.m4 Depends-on: +setlocale configure.ac: gt_LOCALE_TR_UTF8 --- modules/mbsrchr-tests.orig Sat Feb 12 19:06:41 2011 +++ modules/mbsrchr-tests Sat Feb 12 18:29:43 2011 @@ -6,6 +6,7 @@ m4/codeset.m4 Depends-on: +setlocale configure.ac: gt_LOCALE_ZH_CN --- modules/mbsrtowcs-tests.orig Sat Feb 12 19:06:41 2011 +++ modules/mbsrtowcs-tests Sat Feb 12 18:29:53 2011 @@ -15,6 +15,7 @@ mbrtowc mbsinit wctob +setlocale configure.ac: gt_LOCALE_FR --- modules/mbsspn-tests.orig Sat Feb 12 19:06:41 2011 +++ modules/mbsspn-tests Sat Feb 12 18:30:05 2011 @@ -6,6 +6,7 @@ m4/codeset.m4 Depends-on: +setlocale configure.ac: gt_LOCALE_FR_UTF8 --- modules/mbsstr-tests.orig Sat Feb 12 19:06:41 2011 +++ modules/mbsstr-tests Sat Feb 12 18:30:14 2011 @@ -10,6 +10,7 @@ m4/codeset.m4 Depends-on: +setlocale configure.ac: gt_LOCALE_FR_UTF8 --- modules/nl_langinfo-tests.orig Sat Feb 12 19:06:41 2011 +++ modules/nl_langinfo-tests Sat Feb 12 18:35:42 2011 @@ -7,6 +7,7 @@ Depends-on: c-strcase +setlocale configure.ac: gt_LOCALE_FR --- modules/quotearg-tests.orig Sat Feb 12 19:06:41 2011 +++ modules/quotearg-tests Sat Feb 12 18:35:42 2011 @@ -17,6 +17,7 @@ stdint setenv unsetenv +setlocale configure.ac: gt_LOCALE_FR --- modules/unicase/locale-language-tests.orig Sat Feb 12 19:06:41 2011 +++ modules/unicase/locale-language-tests Sat Feb 12 18:35:43 2011 @@ -9,6 +9,7 @@ m4/codeset.m4 Depends-on: +setlocale configure.ac: gt_LOCALE_FR --- modules/unicase/ulc-casecmp-tests.orig Sat Feb 12 19:06:41 2011 +++ modules/unicase/ulc-casecmp-tests Sat Feb 12 18:35:43 2011 @@ -9,6 +9,7 @@ Depends-on: uninorm/nfd +setlocale configure.ac: gt_LOCALE_FR --- modules/unicase/ulc-casecoll-tests.orig Sat Feb 12 19:06:41 2011 +++ modules/unicase/ulc-casecoll-tests Sat Feb 12 18:35:43 2011 @@ -9,6 +9,7 @@ Depends-on: uninorm/nfc +setlocale configure.ac: gt_LOCALE_FR --- modules/unigbrk/ulc-grapheme-breaks-tests.orig Sat Feb 12 19:06:41 2011 +++ modules/unigbrk/ulc-grapheme-breaks-tests Sat Feb 12 18:35:43 2011 @@ -6,6 +6,7 @@ m4/codeset.m4 Depends-on: +setlocale configure.ac: gt_LOCALE_AR --- modules/unistdio/u16-vasnprintf-tests.orig Sat Feb 12 19:06:41 2011 +++ modules/unistdio/u16-vasnprintf-tests Sat Feb 12 18:35:43 2011 @@ -15,6 +15,7 @@ unistr/u16-cpy unistr/u16-strcmp unistr/u16-strlen +setlocale configure.ac: gt_LOCALE_FR --- modules/unistdio/u32-vasnprintf-tests.orig Sat Feb 12 19:06:41 2011 +++ modules/unistdio/u32-vasnprintf-tests Sat Feb 12 18:35:43 2011 @@ -15,6 +15,7 @@ unistr/u32-cpy unistr/u32-strcmp unistr/u32-strlen +setlocale configure.ac: gt_LOCALE_FR --- modules/unistdio/u8-vasnprintf-tests.orig Sat Feb 12 19:06:41 2011 +++ modules/unistdio/u8-vasnprintf-tests Sat Feb 12 18:35:43 2011 @@ -15,6 +15,7 @@ unistr/u8-cpy unistr/u8-strcmp unistr/u8-strlen +setlocale configure.ac: gt_LOCALE_FR --- modules/unistdio/ulc-vasnprintf-tests.orig Sat Feb 12 19:06:41 2011 +++ modules/unistdio/ulc-vasnprintf-tests Sat Feb 12 18:35:43 2011 @@ -11,6 +11,7 @@ m4/codeset.m4 Depends-on: +setlocale configure.ac: gt_LOCALE_FR --- modules/uniwbrk/ulc-wordbreaks-tests.orig Sat Feb 12 19:06:41 2011 +++ modules/uniwbrk/ulc-wordbreaks-tests Sat Feb 12 18:35:43 2011 @@ -6,6 +6,7 @@ m4/codeset.m4 Depends-on: +setlocale configure.ac: gt_LOCALE_FR --- modules/vasnprintf-posix-tests.orig Sat Feb 12 19:06:41 2011 +++ modules/vasnprintf-posix-tests Sat Feb 12 18:35:42 2011 @@ -12,6 +12,7 @@ Depends-on: stdint float +setlocale configure.ac: gt_LOCALE_FR --- modules/wcrtomb-tests.orig Sat Feb 12 19:06:41 2011 +++ modules/wcrtomb-tests Sat Feb 12 18:35:42 2011 @@ -10,6 +10,7 @@ Depends-on: btowc +setlocale configure.ac: gt_LOCALE_FR --- modules/wcsnrtombs-tests.orig Sat Feb 12 19:06:42 2011 +++ modules/wcsnrtombs-tests Sat Feb 12 18:35:42 2011 @@ -12,6 +12,7 @@ m4/codeset.m4 Depends-on: +setlocale configure.ac: gt_LOCALE_FR --- modules/wcsrtombs-tests.orig Sat Feb 12 19:06:42 2011 +++ modules/wcsrtombs-tests Sat Feb 12 18:35:43 2011 @@ -12,6 +12,7 @@ m4/codeset.m4 Depends-on: +setlocale configure.ac: gt_LOCALE_FR