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 /m4/mbrtowc.m4 | |
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.
Diffstat (limited to 'm4/mbrtowc.m4')
-rw-r--r-- | m4/mbrtowc.m4 | 4 |
1 files changed, 2 insertions, 2 deletions
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], [:]) ]) ]) |