diff options
author | Pádraig Brady <P@draigBrady.com> | 2015-11-02 11:25:47 +0000 |
---|---|---|
committer | Pádraig Brady <P@draigBrady.com> | 2015-11-02 11:30:32 +0000 |
commit | 45228d9689a677588157fc8d26725a076f4f21e8 (patch) | |
tree | 79e4799ca54f1b2b645dfb6ecd0eec5422dd4da0 | |
parent | 86b1f082ddd291543ca63bf474973e5b8a82ba6c (diff) | |
download | gnulib-45228d9689a677588157fc8d26725a076f4f21e8.tar.gz |
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.
-rw-r--r-- | ChangeLog | 8 | ||||
-rw-r--r-- | m4/mbrlen.m4 | 4 | ||||
-rw-r--r-- | m4/mbrtowc.m4 | 4 |
3 files changed, 12 insertions, 4 deletions
@@ -1,3 +1,11 @@ +2015-11-02 Pádraig Brady <P@draigBrady.com> + + 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 <eggert@cs.ucla.edu> 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], [:]) ]) ]) |