this fix the console output of iptraf but in an ssh session it still display badly, maybe someother can help here. --- iptraf-3.0.0/src/iptraf.c.orig 2005-09-13 08:42:54.000000000 +0200 +++ iptraf-3.0.0/src/iptraf.c 2006-01-30 08:38:49.000000000 +0100 @@ -39,6 +39,7 @@ #include <menurt.h> #include <winops.h> #include <msgboxes.h> +#include <locale.h> #include "dirs.h" #include "deskman.h" #include "fltdefs.h" @@ -499,6 +500,8 @@ } #endif + setlocale(LC_ALL, ""); + strcpy(current_logfile, ""); strcpy(graphing_logfile, ""); strcpy(graphing_filter, "");
Created attachment 100611 [details, diff] iptraf-3.0.0-setlocale.patch
Created attachment 100612 [details, diff] iptraf-3.0.0-Makefile.patch
Created attachment 100614 [details, diff] iptraf-3.0.0-r2.ebuild.patch
Here is the patches for unicode
Fixed in portage
from Makefile.patch: -LIBS = -L../support -ltextbox -lpanel -lncurses # in this order! +LIBS = -L../support -ltextbox -lpanelw -lncursesw # in this order! Wide versions are only installed if ncurses is installed with USE=unicode. gcc -o iptraf iptraf.o itrafmon.o packet.o tcptable.o othptab.o ifstats.o deskman.o ipcsum.o hostmon.o fltedit.o tr.o cidr.o fltselect.o ipfilter.o fltmgr.o ipfrag.o serv.o servname.o instances.o timer.o revname.o pktsize.o landesc.o isdntab.o options.o promisc.o ifaces.o error.o log.o mode.o getpath.o bar.o parseproto.o -L../support -ltextbox -lpanelw -lncursesw /usr/lib/gcc/i686-pc-linux-gnu/4.1.1/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lpanelw collect2: ld returned 1 exit status make: *** [iptraf] Error 1
*** Bug 155196 has been marked as a duplicate of this bug. ***
Add unicode flag in portage tree