Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 152883 - net-analyzer/iptraf - UTF-8 badly displayed
Summary: net-analyzer/iptraf - UTF-8 badly displayed
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords:
: 155196 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-10-26 08:28 UTC by Icebird
Modified: 2006-11-15 15:07 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
iptraf-3.0.0-setlocale.patch (iptraf-3.0.0-setlocale.patch,474 bytes, patch)
2006-10-27 12:54 UTC, Cédric Krier
Details | Diff
iptraf-3.0.0-Makefile.patch (iptraf-3.0.0-Makefile.patch,1.75 KB, patch)
2006-10-27 12:55 UTC, Cédric Krier
Details | Diff
iptraf-3.0.0-r2.ebuild.patch (iptraf-3.0.0-r2.ebuild.patch,443 bytes, patch)
2006-10-27 12:56 UTC, Cédric Krier
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Icebird 2006-10-26 08:28:46 UTC
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, "");
Comment 1 Cédric Krier gentoo-dev 2006-10-27 12:54:55 UTC
Created attachment 100611 [details, diff]
iptraf-3.0.0-setlocale.patch
Comment 2 Cédric Krier gentoo-dev 2006-10-27 12:55:15 UTC
Created attachment 100612 [details, diff]
iptraf-3.0.0-Makefile.patch
Comment 3 Cédric Krier gentoo-dev 2006-10-27 12:56:59 UTC
Created attachment 100614 [details, diff]
iptraf-3.0.0-r2.ebuild.patch
Comment 4 Cédric Krier gentoo-dev 2006-10-27 12:58:06 UTC
Here is the patches for unicode
Comment 5 Cédric Krier gentoo-dev 2006-11-14 12:37:42 UTC
Fixed in portage
Comment 6 Torsten Veller (RETIRED) gentoo-dev 2006-11-14 13:15:02 UTC
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
Comment 7 Jakub Moc (RETIRED) gentoo-dev 2006-11-15 01:38:55 UTC
*** Bug 155196 has been marked as a duplicate of this bug. ***
Comment 8 Cédric Krier gentoo-dev 2006-11-15 15:07:54 UTC
Add unicode flag in portage tree