severity 410855 normal
merge 237675 410855
thanks
On Wed, Feb 14, 2007 at 03:23:14PM +0000, [EMAIL PROTECTED] wrote:
> Nicolas François wrote:
> > Can you provide more information?
> > Can you for example cut and paste what you see (in a gzipped text file, or
> > a screen shot).
> > It would be nice also if you could provide what you guess should be the
> > correct form.
>
> Here's the screenshot. I think I don't need to explain which characters
> aren't properly displayed.
Thanks for the screenshot.
I forgot that there is a known issue with wide character strings in
dselect. (see #237675)
This can be fixed by linking against libncursesw5 instead of libncurses5.
I updated the simplified patch sent by Changwoo Ryu.
If it can be applied for Etch (I'm not sure this bug applies to the UTF-8
bugs which can have a freeze exception), then maybe it could be worth
adding something like HAVE_NCURSESW_NCURSES_H or remove the possibility to
link against a simple curses library (because #include <curses.h> is
replaced by #include <ncursesw/curses.h>).
If it cannot be applied to Etch, it would be better to work on the more
complete patch from Eugeniy Meshcheryakov (in #237675 also).
Kind Regards,
--
Nekral
Index: dselect/main.cc
===================================================================
--- dselect/main.cc (révision 650)
+++ dselect/main.cc (copie de travail)
@@ -36,7 +36,7 @@
#include <ctype.h>
#include <assert.h>
-#include <term.h>
+#include <ncursesw/term.h>
extern "C" {
#include <dpkg.h>
Index: dselect/dselect.h
===================================================================
--- dselect/dselect.h (révision 650)
+++ dselect/dselect.h (copie de travail)
@@ -28,7 +28,7 @@
#include <signal.h>
#undef ERR
-#include <curses.h>
+#include <ncursesw/curses.h>
struct helpmenuentry {
char key;
Index: dselect/Makefile.am
===================================================================
--- dselect/Makefile.am (révision 650)
+++ dselect/Makefile.am (copie de travail)
@@ -41,7 +41,7 @@
curkeys.$(OBJEXT): curkeys.h
curkeys.h: $(srcdir)/keyoverride $(srcdir)/mkcurkeys.pl
- cursesfile=`echo '#include <curses.h>' | \
+ cursesfile=`echo '#include <ncursesw/curses.h>' | \
$(CC) -E - | grep 'curses.h' | head -n 1 | \
sed -e 's/^[^"]*"//; s/".*$$//'`; \
if [ "$$cursesfile" = "" ]; then \
Index: m4/libs.m4
===================================================================
--- m4/libs.m4 (révision 650)
+++ m4/libs.m4 (copie de travail)
@@ -93,7 +93,7 @@
# Check for curses library.
AC_DEFUN([DPKG_LIB_CURSES],
[AC_ARG_VAR([CURSES_LIBS], [linker flags for curses library])dnl
-AC_CHECK_LIB([ncurses], [initscr], [CURSES_LIBS="${CURSES_LIBS:+$CURSES_LIBS }-lncurses"],
+AC_CHECK_LIB([ncursesw], [initscr], [CURSES_LIBS="${CURSES_LIBS:+$CURSES_LIBS }-lncursesw"],
[AC_CHECK_LIB([curses], [initscr], [CURSES_LIBS="${CURSES_LIBS:+$CURSES_LIBS }-lcurses"],
[AC_MSG_WARN([no curses library found])])])
])# DPKG_LIB_CURSES