Package: newt, slang2
Severity: normal
Tags: d-i

This bug can be reproduced by running the following command under UTF-8
locale and entering some non-ASCII characters:

 whiptail --inputbox text 10 40

On my system I get input field that is wider than dialog box.

This bug can be fixed by applying attached pactch to newt, but i have
absolutely no idea why current version should not work correctly, so
maybe it is bug in slang2 and not in newt.


-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/dash
Locale: LANG=uk_UA.UTF-8, LC_CTYPE=uk_UA.UTF-8 (charmap=UTF-8)
diff -ruN newt-0.52.2-old/entry.c newt-0.52.2/entry.c
--- newt-0.52.2-old/entry.c	2006-08-26 18:49:11.000000000 +0200
+++ newt-0.52.2/entry.c	2006-08-26 18:50:06.000000000 +0200
@@ -198,7 +198,7 @@
 	i = len;
 	/* BIDI: do not replaced, because it will not work.
 	 * More work needed */
-	SLsmg_write_string(chptr);
+	SLsmg_write_nstring(chptr, len);
 	while (i < co->width) {
 	    SLsmg_write_char('_');
 	    i++;

Reply via email to