Hello community,

here is the log from the commit of package iftop for openSUSE:11.4
checked in at Tue Sep 27 15:56:04 CEST 2011.



--------
--- old-versions/11.4/all/iftop/iftop.changes   2009-11-29 13:56:55.000000000 
+0100
+++ 11.4/iftop/iftop.changes    2011-09-27 12:25:04.000000000 +0200
@@ -1,0 +2,6 @@
+Mon Sep 26 12:48:31 UTC 2011 - [email protected]
+
+- added iftop-0.17-ncursesw.patch top fix bnc #718922 - 
+  (iftop uses vt100 line-drawing in UTF-8 mode)
+
+-------------------------------------------------------------------

Package does not exist at destination yet. Using Fallback 
old-versions/11.4/all/iftop
Destination is old-versions/11.4/UPDATES/all/iftop
calling whatdependson for 11.4-i586


New:
----
  iftop-0.17-ncursesw.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ iftop.spec ++++++
--- /var/tmp/diff_new_pack.6eBR0X/_old  2011-09-27 15:55:46.000000000 +0200
+++ /var/tmp/diff_new_pack.6eBR0X/_new  2011-09-27 15:55:46.000000000 +0200
@@ -1,7 +1,7 @@
 #
-# spec file for package iftop (Version 0.17)
+# spec file for package iftop
 #
-# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -21,7 +21,7 @@
 Name:           iftop
 Summary:        Real-Time Interface Bandwidth Usage
 Version:        0.17
-Release:        128
+Release:        137.<RELEASE138>
 License:        GPLv2+
 Group:          Productivity/Networking/Diagnostic
 Url:            http://www.ex-parrot.com/~pdw/iftop/
@@ -30,6 +30,7 @@
 Patch0:         %name-manpage.patch
 Patch1:         %name-bar-bytes.patch
 Patch2:         %name-bar-display.patch
+Patch3:         %name-%version-ncursesw.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 
 %description
@@ -50,6 +51,7 @@
 %patch0
 %patch1 -p1
 %patch2 -p1
+%patch3 -p1
 
 %build
 export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" \

++++++ iftop-0.17-ncursesw.patch ++++++
Patch by Robert Scheck <[email protected]> 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:
https://bugzilla.redhat.com/show_bug.cgi?id=546032

--- iftop-0.17/configure.in                     2006-02-12 19:34:24.000000000 
+0100
+++ iftop-0.17/configure.in.ncursesw            2010-04-01 15:12:36.000000000 
+0200
@@ -352,7 +352,7 @@
 
 AC_MSG_CHECKING([for a curses library containing mvchgat])
 oldLIBS=$LIBS
-for curseslib in curses ncurses ; do
+for curseslib in ncursesw curses ncurses ; do
     LIBS="$oldLIBS -l$curseslib"
     AC_TRY_LINK([
 #include <curses.h>
--- iftop-0.17/iftop.c                          2005-03-31 14:08:05.000000000 
+0200
+++ iftop-0.17/iftop.c.ncursesw                 2010-04-01 15:11:50.000000000 
+0200
@@ -25,6 +25,7 @@
 #include <signal.h>
 #include <string.h>
 #include <unistd.h>
+#include <locale.h>
 
 #include "iftop.h"
 #include "addr_hash.h"
@@ -563,6 +564,8 @@
     pthread_t thread;
     struct sigaction sa = {};
 
+    setlocale(LC_ALL, "");
+
     /* TODO: tidy this up */
     /* read command line options and config file */   
     config_init();

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++



Remember to have fun...

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to