diff options
Diffstat (limited to 'm4')
-rw-r--r-- | m4/mbsnrtowcs.m4 | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/m4/mbsnrtowcs.m4 b/m4/mbsnrtowcs.m4 index 34dcf30e63..7cab5f79ed 100644 --- a/m4/mbsnrtowcs.m4 +++ b/m4/mbsnrtowcs.m4 @@ -1,4 +1,4 @@ -# mbsnrtowcs.m4 serial 8 +# mbsnrtowcs.m4 serial 9 dnl Copyright (C) 2008, 2010-2023 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -29,6 +29,13 @@ AC_DEFUN([gl_FUNC_MBSNRTOWCS], *yes) ;; *) REPLACE_MBSNRTOWCS=1 ;; esac + if test $REPLACE_MBSNRTOWCS = 0; then + gl_MBRTOWC_C_LOCALE + case "$gl_cv_func_mbrtowc_C_locale_sans_EILSEQ" in + *yes) ;; + *) REPLACE_MBSNRTOWCS=1 ;; + esac + fi fi fi ]) |