Package: diffstat
Version: 1.55-3
Severity: normal

Diffstat tries to get the terminal width to auto-scale the histogram, but
the method it uses simply doesn't work, at least with bash.

The method it uses is getenv("COLUMNS").  Unfortunately, at least with bash,
the COLUMNS variable is normally a "magic" variable, it doesn't really exist
in the environment, and so diffstat always thinks the terminal is 80 chars
wide, which often results in forcing the histogram to only be its minimum 10
chars wide, no matter how big the terminal window is.

Workaround: export COLUMNS

-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.6-trunk-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages diffstat depends on:
ii  libc6  2.13-37

diffstat recommends no packages.

diffstat suggests no packages.

-- no debconf information


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

Reply via email to