From: Pádraig Brady Date: Mon, 2 Nov 2015 11:25:47 +0000 (+0000) Subject: maint: use a more standard return from mbrtowc test X-Git-Tag: v1.0~6906 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=45228d9689a677588157fc8d26725a076f4f21e8;p=gnulib.git maint: use a more standard return from mbrtowc test * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Don't return 1 from the test program as this is non standard and often indicates an unhandled case in the test program. * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise. --- diff --git a/ChangeLog b/ChangeLog index e83b3ce26d..cf4b657a0d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2015-11-02 Pádraig Brady + + maint: use a more standard return from mbrtowc test + * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Don't return 1 + from the test program as this is non standard and often + indicates an unhandled case in the test program. + * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise. + 2015-10-30 Paul Eggert intprops: add WRAPV and const flavors for GCC 5 diff --git a/m4/mbrlen.m4 b/m4/mbrlen.m4 index 977a1ed6fe..42eb61a12c 100644 --- a/m4/mbrlen.m4 +++ b/m4/mbrlen.m4 @@ -253,10 +253,10 @@ changequote([,])dnl int main (void) { - return mbrlen ("", 0, &mbs) == (size_t) -2; + return ! mbrlen ("", 0, &mbs) == (size_t) -2; }]])], - [gl_cv_func_mbrlen_empty_input=no], [gl_cv_func_mbrlen_empty_input=yes], + [gl_cv_func_mbrlen_empty_input=no], [:]) ]) ]) diff --git a/m4/mbrtowc.m4 b/m4/mbrtowc.m4 index 640579e611..deb9f06f33 100644 --- a/m4/mbrtowc.m4 +++ b/m4/mbrtowc.m4 @@ -569,10 +569,10 @@ changequote([,])dnl int main (void) { - return mbrtowc (&wc, "", 0, &mbs) == (size_t) -2; + return ! mbrtowc (&wc, "", 0, &mbs) == (size_t) -2; }]])], - [gl_cv_func_mbrtowc_empty_input=no], [gl_cv_func_mbrtowc_empty_input=yes], + [gl_cv_func_mbrtowc_empty_input=no], [:]) ]) ])