0001-fix-utf8-support.patch 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. From dfbdd324769f542b6b89499c1b7f0f4322100bc6 Mon Sep 17 00:00:00 2001
  2. From: wfaulk <wfaulk@users.noreply.github.com>
  3. Date: Wed, 7 Aug 2019 18:57:43 -0400
  4. Subject: [PATCH] fix utf8 support
  5. in oping.c:923 in has_utf8() the #if HAVE_NCURSESW_NCURSES_H is
  6. wrong. in consequence of this hist_symbols_utf8 is not used and the
  7. the graph type prettyping is not realy pretty. the name of the header
  8. file is curses.h see also oping.c:85 or the third changelog entry from
  9. 1997/05/31
  10. https://github.com/octo/liboping/issues/36
  11. [Upstream: https://github.com/octo/liboping/pull/49/commits/a313923ec12d11daa8e70497c6b7b5d50965821b]
  12. Signed-off-by: Peter Seiderer <ps.report@gmx.net>
  13. ---
  14. src/oping.c | 2 +-
  15. 1 file changed, 1 insertion(+), 1 deletion(-)
  16. diff --git a/src/oping.c b/src/oping.c
  17. index 87ca81a..62dbb67 100644
  18. --- a/src/oping.c
  19. +++ b/src/oping.c
  20. @@ -903,7 +903,7 @@ static void time_calc (struct timespec *ts_dest, /* {{{ */
  21. #if USE_NCURSES
  22. static _Bool has_utf8() /* {{{ */
  23. {
  24. -# if HAVE_NCURSESW_NCURSES_H
  25. +# if HAVE_NCURSESW_CURSES_H
  26. if (!opt_utf8)
  27. {
  28. /* Automatically determine */
  29. --
  30. 2.25.1