Commit ac177644 authored by pdw's avatar pdw

Patch by Robert Scheck <> for iftop >= 0.17, which works

around a PuTTY issue (doesn't honor vt100 line-drawing when in UTF-8 mode) to get
sane lines drawn instead of letters. When using PuTTY in UTF-8 mode, you have to
execute "NCURSES_NO_UTF8_ACS=1 iftop" in the future. Technically, relinking from
curses to ncursesw is just half of the solution, calling setlocale() is the rest.
For further information, please have a look to Red Hat Bugzilla, bug ID #546032:
parent 4ef22653
......@@ -352,7 +352,7 @@ dnl
AC_MSG_CHECKING([for a curses library containing mvchgat])
for curseslib in curses ncurses ; do
for curseslib in ncursesw curses ncurses ; do
LIBS="$oldLIBS -l$curseslib"
#include <curses.h>
......@@ -27,6 +27,7 @@
#include <signal.h>
#include <string.h>
#include <unistd.h>
#include <locale.h>
#include "iftop.h"
#include "addr_hash.h"
......@@ -763,6 +764,8 @@ int main(int argc, char **argv) {
pthread_t thread;
struct sigaction sa = {};
setlocale(LC_ALL, "");
/* TODO: tidy this up */
/* read command line options and config file */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment