[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#448290: display glitch: hidden tab at end of line



Package: xterm
Version: 229-1
Severity: normal

In an 80 column xterm, run this command:

perl -e 'print "LABEL=kodama-root /\t\text3\tnoatime,user_xattr,errors=remount-ro 00\t1\n"'

The output is displayed like this:
LABEL=kodama-root /             ext3    noatime,user_xattr,errors=remount-ro 001
Notice that is not what we asked perl to print, There should be a tab between
the ending "00" and "1". Switch to a wider xterm, and run it again, and see:
LABEL=kodama-root /             ext3    noatime,user_xattr,errors=remount-ro 00 1

Of course, this can also be reproduced at other xterm widths. The \t just
needs to be the last character displayed before the line should wrap.
So a more general command to show the display glitch is:
perl -e 'print ("x" x (shift()-1)); print "\tX\n"' $COLUMNS

If it matters, my xterm is configured to use unicode, and I've attached
xrdb-query output.

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

Kernel: Linux 2.6.22-2-686 (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/dash

Versions of packages xterm depends on:
ii  libc6                     2.6.1-6        GNU C Library: Shared libraries
ii  libfontconfig1            2.4.2-1.4      generic font configuration library
ii  libice6                   2:1.0.4-1      X11 Inter-Client Exchange library
ii  libncurses5               5.6+20071013-1 Shared libraries for terminal hand
ii  libsm6                    2:1.0.3-1+b1   X11 Session Management library
ii  libx11-6                  2:1.0.3-7      X11 client-side library
ii  libxaw7                   2:1.0.4-1      X11 Athena Widget library
ii  libxext6                  1:1.0.3-2      X11 miscellaneous extension librar
ii  libxft2                   2.1.12-2       FreeType-based font drawing librar
ii  libxmu6                   1:1.0.3-1      X11 miscellaneous utility library
ii  libxt6                    1:1.0.5-3      X11 toolkit intrinsics library
ii  xbitmaps                  1.0.1-2        Base X bitmaps

Versions of packages xterm recommends:
ii  xutils                        1:7.3+2    X Window System utility programs m

-- no debconf information

-- 
see shy jo

Attachment: signature.asc
Description: Digital signature


Reply to: