• Bug#265553: line width liscalculated

    From Joey Hess@1:229/2 to All on Fri Aug 13 21:00:15 2004
    From: [email protected]

    Package: psmisc
    Version: 21.5-1
    Severity: normal
    File: /usr/bin/pstree

    If pstree is ran in an xterm, it uses escape sequences to draw high-bit
    line drawing characters. It seems to count these escape sequences toward
    the length of the line, leading it to incorrectly truncate lines far
    before they reach the side of the screen:

    x mqxdmqqq.xsessionqwqionqwqfirefo+
    x x tqxchatqqqxchat+

    Pardon the paste that messed up the high bit characters, but see where
    the ends of the lines are, and compare with this, when it was run in
    TERM=dumb:

    | `-xdm---.xsession-+-ion-+-firefox-bin---firefox-bin---3*[firefox-bi+
    | | |-xchat---xchat---xchat

    -- System Information:
    Debian Release: 3.1
    APT prefers unstable
    APT policy: (500, 'unstable'), (1, 'experimental')
    Architecture: i386 (i686)
    Kernel: Linux 2.4.26
    Locale: LANG=en_US, LC_CTYPE=en_US

    Versions of packages psmisc depends on:
    ii libc6 2.3.2.ds1-15 GNU C Library: Shared libraries an ii libncurses5 5.4-4 Shared libraries for terminal hand

    -- no debconf information

    --
    see shy jo

    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.2.5 (GNU/Linux)

    iD8DBQFBHPBGd8HHehbQuO8RAgCVAJ9TJWN5+9PQIFs3AMHNbpRstEJUFwCbBCIi ducXKNzDGCAT+GwHRFCXZk0=
    =MfSf
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)