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

Bug#721978: xterm: "ls -al /etc/ssl/certs" causes xterm to stop



On Fri, Sep 06, 2013 at 07:53:40AM -0500, John Moyer wrote:
> Package: xterm
> Version: 278-4
> Severity: normal
> 
> Dear Maintainer,
> *** Please consider answering these questions, where appropriate ***
> 
>    * What led up to the situation?
> ls -al /etc/ssl/certs
> start xterm on local host. ssh to remote host running Wheezy. ls
> There is no problem if I do this on local host, so maybe ther problem is 
> some combination of ssh and xterm. strace on ssh shows it is in read().
> 
>    * What exactly did you do (or not do) that was effective (or
>      ineffective)?
> stty sane < /dev/pts/0 > /dev/pts/0
>    * What was the outcome of this action?
> No change
>    * What outcome did you expect instead?
> characters echoed and input accepted
> 
> ls -al /etc/ssl/certs | cat -v 
> behaves as expected.
> 
> /etc/ssl/certs/T*Sertifika* is the file name that causes problems. There is no
> problem with the Xfce desktop terminal except that the filename does not
> display correctly.
> 
> 00000000 2f 65 74 63 2f 73 73 6c 2f 63 65 72 74 73 2f 54      /etc/ssl/certs/T
> 00000010 c3 9c 42 c4 b0 54 41 4b 5f 55 45 4b 41 45 5f 4b      ..B..TAK_UEKAE_K
> 00000020 c3 b6 6b 5f 53 65 72 74 69 66 69 6b 61 5f 48 69      ..k_Sertifika_Hi
> 00000030 7a 6d 65 74 5f 53 61 c4 9f 6c 61 79 c4 b1 63 c4      zmet_Sa..lay..c.
> 00000040 b1 73 c4 b1 5f 2d 5f 53 c3 bc 72 c3 bc 6d 5f 33      .s.._-_S..r..m_3
> 00000050 2e 70 65 6d 0a                                       .pem.
> 
> lrwxrwxrwx 1 root root       104 May 17 19:11 T##B##TAK_UEKAE_K##k_Sertifika_Hizmet_Sa##lay##c##s##_-_S##r##m_3.pem -> /usr/share/ca-certificates/mozilla/T##B##TAK_UEKAE_K##k_Sertifika_Hizmet_Sa##lay##c##s##_-_S##r##m_3.crt

The string is encoded with UTF-8, but according to the summary, your
locale is C (POSIX).  The 9f begins a string which is not terminated
(see ctlseqs.ms):
 
ESC _
     Application Program Command (APC  is 0x9f).
 
Also see the discussion of brokenStringTerm in the manpage.

(This is not a bug in xterm, by the way).
 
> Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

-- 
Thomas E. Dickey <dickey@invisible-island.net>
http://invisible-island.net
ftp://invisible-island.net

Attachment: signature.asc
Description: Digital signature


Reply to: