Package: whiptail
Version: 0.52.19-1
Severity: normal
Tags: patch

Dear Maintainer,

Whiptail fails to allocate good space for tag and item strings in long strings.

How reproducible:
Always

Steps to Reproduce:
The window size in the console:
$ resize
COLUMNS=100;
LINES=37;
export COLUMNS LINES;

This command for whiptail does not show good strings:
whiptail --backtitle 'TEST' --title 'TEST' --menu 'MODE' 0 0 0 \
runA 'RunA' \
runB 'RunB' \
runC 
'RunC01234567890123456789012345678901234567890123456789012345678901234567890123456789012'
 \
2> /tmp/output.txt

However, if making the strings shorter, the result is good:
whiptail --backtitle 'TEST' --title 'TEST' --menu 'MODE' 0 0 0 \
runA 'RunA' \
runB 'RunB' \
runC 
'RunC0123456789012345678901234567890123456789012345678901234567890123456789012345678901'
 \
2> /tmp/output.txt

After reporting to upstream 
(https://bugzilla.redhat.com/show_bug.cgi?id=1353792), a patch is available 
from upstream: 
https://git.fedorahosted.org/cgit/newt.git/commit/?id=10bbfd2837eb5ad87416ed2a648231a2a9b7c6fc
I have tested it and confirmed it works well. Since newt is not released very 
often, could you please apply this patch ?
Thank you very much.

Steven


-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 4.7.0-1-686-pae (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Init: systemd (via /run/systemd/system)

Versions of packages whiptail depends on:
ii  libc6        2.24-8
ii  libnewt0.52  0.52.19-1
ii  libpopt0     1.16-10
ii  libslang2    2.3.1-5

whiptail recommends no packages.

whiptail suggests no packages.

-- no debconf information

Reply via email to