-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
package/liboping: add patch to fix utf8 ncurses support
Add patch from upstream merge request [1] to fix fix utf8 ncurses support. [1] octo/liboping#36 Signed-off-by: Peter Seiderer <[email protected]> Signed-off-by: Thomas Petazzoni <[email protected]>
- Loading branch information
1 parent
5521539
commit 810afe6
Showing
1 changed file
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
From dfbdd324769f542b6b89499c1b7f0f4322100bc6 Mon Sep 17 00:00:00 2001 | ||
From: wfaulk <[email protected]> | ||
Date: Wed, 7 Aug 2019 18:57:43 -0400 | ||
Subject: [PATCH] fix utf8 support | ||
|
||
in oping.c:923 in has_utf8() the #if HAVE_NCURSESW_NCURSES_H is | ||
wrong. in consequence of this hist_symbols_utf8 is not used and the | ||
the graph type prettyping is not realy pretty. the name of the header | ||
file is curses.h see also oping.c:85 or the third changelog entry from | ||
1997/05/31 | ||
|
||
https://github.com/octo/liboping/issues/36 | ||
|
||
[Upstream: https://github.com/octo/liboping/pull/49/commits/a313923ec12d11daa8e70497c6b7b5d50965821b] | ||
Signed-off-by: Peter Seiderer <[email protected]> | ||
--- | ||
src/oping.c | 2 +- | ||
1 file changed, 1 insertion(+), 1 deletion(-) | ||
|
||
diff --git a/src/oping.c b/src/oping.c | ||
index 87ca81a..62dbb67 100644 | ||
--- a/src/oping.c | ||
+++ b/src/oping.c | ||
@@ -903,7 +903,7 @@ static void time_calc (struct timespec *ts_dest, /* {{{ */ | ||
#if USE_NCURSES | ||
static _Bool has_utf8() /* {{{ */ | ||
{ | ||
-# if HAVE_NCURSESW_NCURSES_H | ||
+# if HAVE_NCURSESW_CURSES_H | ||
if (!opt_utf8) | ||
{ | ||
/* Automatically determine */ | ||
-- | ||
2.25.1 | ||
|