On Freitag, 13. Dezember 2019 15:33:42 CET Daniel Richard G. wrote: > On Fri, 2019 Dec 13 05:32-05:00, Bruno Haible wrote: > > > > This should fix it. Thanks for the feedback. > > Arrrgh, not quite there yet >_< > > Tested Git 83710ffa. test-locale now builds, but test-duplocale still > does not, failing in the same place. HAVE_WORKING_DUPLOCALE appears to > be 1 (true).
Oops. The patch below should fix that (hopefully). > Isn't it possible to get a final result of HAVE_DUPLOCALE=0, > REPLACE_DUPLOCALE=0, We have that result already, as you showed through 'grep -i locale config.status'. 2019-12-14 Bruno Haible <br...@clisp.org> locale, duplocale, localename: Fix last patch. Reported by Daniel Richard G. in <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00093.html>. * lib/locale.in.h (HAVE_WORKING_NEWLOCALE, HAVE_WORKING_DUPLOCALE): Don't define if locale_t does not exist. diff --git -i a/lib/locale.in.h b/lib/locale.in.h index c0915a5..9e897a3 100644 --- a/lib/locale.in.h +++ b/lib/locale.in.h @@ -227,9 +227,11 @@ _GL_CXXALIAS_SYS (newlocale, locale_t, # if @HAVE_NEWLOCALE@ _GL_CXXALIASWARN (newlocale); # endif +# if @HAVE_NEWLOCALE@ || @REPLACE_NEWLOCALE@ # ifndef HAVE_WORKING_NEWLOCALE # define HAVE_WORKING_NEWLOCALE 1 # endif +# endif #elif defined GNULIB_POSIXCHECK # undef newlocale # if HAVE_RAW_DECL_NEWLOCALE @@ -254,9 +256,11 @@ _GL_CXXALIAS_SYS (duplocale, locale_t, (locale_t locale)); # if @HAVE_DUPLOCALE@ _GL_CXXALIASWARN (duplocale); # endif +# if @HAVE_DUPLOCALE@ || @REPLACE_DUPLOCALE@ # ifndef HAVE_WORKING_DUPLOCALE # define HAVE_WORKING_DUPLOCALE 1 # endif +# endif #elif defined GNULIB_POSIXCHECK # undef duplocale # if HAVE_RAW_DECL_DUPLOCALE