findutils-4.6.0-gnulib-mb.patch 1005 B

1234567891011121314151617181920212223242526272829303132333435
  1. https://bugs.gentoo.org/576818
  2. From 1f63650823cebf52044df840c81062ccb52163a2 Mon Sep 17 00:00:00 2001
  3. From: Daiki Ueno <ueno@gnu.org>
  4. Date: Mon, 28 Dec 2015 06:27:42 +0900
  5. Subject: [PATCH] maint: fix operator precedence in mbrtowc test
  6. This is a fix for test breakage introduced by commit 45228d96; the
  7. equality expression must be parenthesized when negated with '!',
  8. otherwise we always get:
  9. test-mbrtowc.c:49: assertion 'ret == (size_t)(-2)' failed
  10. * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Negate the entire expression.
  11. * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
  12. ---
  13. m4/mbrlen.m4 | 2 +-
  14. m4/mbrtowc.m4 | 2 +-
  15. 2 files changed, 2 insertions(+), 2 deletions(-)
  16. --- a/configure
  17. +++ b/configure
  18. @@ -569,7 +569,7 @@ changequote([,])dnl
  19. int
  20. main (void)
  21. {
  22. - return ! mbrtowc (&wc, "", 0, &mbs) == (size_t) -2;
  23. + return mbrtowc (&wc, "", 0, &mbs) != (size_t) -2;
  24. }
  25. _ACEOF
  26. if ac_fn_c_try_run "$LINENO"; then :
  27. --
  28. 2.6.2