Bug#410855: menu and help text broken with Polish UTF-8 locale (pl_PL.UTF-8)

2007-02-20 Thread Nicolas François
severity 410855 normal
merge 237675 410855
thanks

On Wed, Feb 14, 2007 at 03:23:14PM +, [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


Bug#410855: menu and help text broken with Polish UTF-8 locale (pl_PL.UTF-8)

2007-02-14 Thread Nicolas François
On Tue, Feb 13, 2007 at 10:05:26PM +, Rafal Czlonka wrote:
 
 Just as I've written in the subject, some Polish letters are broken with
 this locale.

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.

Kind Regards,
-- 
Nekral


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#410855: menu and help text broken with Polish UTF-8 locale (pl_PL.UTF-8)

2007-02-14 Thread Rafal J Czlonka
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.

Regards,
-- 
rjc


screen.png
Description: PNG image


Bug#410855: menu and help text broken with Polish UTF-8 locale (pl_PL.UTF-8)

2007-02-13 Thread Rafal Czlonka
Package: dselect
Version: 1.13.25
Severity: minor
Tags: l10n

Just as I've written in the subject, some Polish letters are broken with
this locale.

Regards,
rjc

-- System Information:
Debian Release: 4.0
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: powerpc (ppc)
Shell:  /bin/sh linked to /bin/dash
Kernel: Linux 2.6.18-4-powerpc
Locale: LANG=pl_PL.UTF-8, LC_CTYPE=pl_PL.UTF-8 (charmap=UTF-8)

Versions of packages dselect depends on:
ii  dpkg1.13.25  package maintenance system for Deb
ii  libc6   2.3.6.ds1-11 GNU C Library: Shared libraries
ii  libgcc1 1:4.1.1-21   GCC support library
ii  libncurses5 5.5-5Shared libraries for terminal hand
ii  libstdc++6  4.1.1-21 The GNU Standard C++ Library v3

dselect recommends no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]