GNU logs - #34224, boring messages


Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#34224: 25.1; ansi-term displays garbage on tree(1) command
Resent-From: m-guelker@HIDDEN (Marvin =?UTF-8?Q?G=C3=BClker?=)
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Sun, 27 Jan 2019 18:11:01 +0000
Resent-Message-ID: <handler.34224.B.154861262820571 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: report 34224
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: 34224 <at> debbugs.gnu.org
X-Debbugs-Original-To: bug-gnu-emacs@HIDDEN
Received: via spool by submit <at> debbugs.gnu.org id=B.154861262820571
          (code B ref -1); Sun, 27 Jan 2019 18:11:01 +0000
Received: (at submit) by debbugs.gnu.org; 27 Jan 2019 18:10:28 +0000
Received: from localhost ([127.0.0.1]:47913 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1gnot2-0005Lj-Cs
	for submit <at> debbugs.gnu.org; Sun, 27 Jan 2019 13:10:28 -0500
Received: from eggs.gnu.org ([209.51.188.92]:46017)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m-guelker@HIDDEN>) id 1gnot0-0005LW-F0
 for submit <at> debbugs.gnu.org; Sun, 27 Jan 2019 13:10:27 -0500
Received: from lists.gnu.org ([209.51.188.17]:43857)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <m-guelker@HIDDEN>)
 id 1gnosv-0006yb-7Z
 for submit <at> debbugs.gnu.org; Sun, 27 Jan 2019 13:10:21 -0500
Received: from eggs.gnu.org ([209.51.188.92]:56211)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <m-guelker@HIDDEN>) id 1gnosu-00023w-5u
 for bug-gnu-emacs@HIDDEN; Sun, 27 Jan 2019 13:10:21 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled
 version=3.3.2
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <m-guelker@HIDDEN>) id 1gnoss-0006uy-Vc
 for bug-gnu-emacs@HIDDEN; Sun, 27 Jan 2019 13:10:20 -0500
Received: from mx.shared.smtp.dk ([93.90.117.154]:43702)
 by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <m-guelker@HIDDEN>)
 id 1gnoss-0006nR-DZ
 for bug-gnu-emacs@HIDDEN; Sun, 27 Jan 2019 13:10:18 -0500
Received: from montblanc.guelker.eu (unknown [193.25.100.36])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (No client certificate requested)
 (Authenticated sender: outmail@HIDDEN)
 by mysmtp.com (Postfix) with ESMTPSA id 43nggw3qzPz2xJ3
 for <bug-gnu-emacs@HIDDEN>; Sun, 27 Jan 2019 19:06:52 +0100 (CET)
Received: from localhost (localhost [127.0.0.1]) (Authenticated sender: mg)
 by montblanc.guelker.eu (Postfix) with ESMTPSA id 6257BE090F
 for <bug-gnu-emacs@HIDDEN>; Sun, 27 Jan 2019 18:10:04 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=guelker.eu;
 s=montblanc; t=1548612604;
 bh=nKbLGFFbFg1YfM0WzJLipvS8JvP20jPddfgJzKGvB94=;
 h=From:To:Subject:Date;
 b=jIacQn+caY+8g85D4K5ltVxdi90qiXoHmNRPINtuUgU8MQX7NH8p6BCWiPUb72MVy
 NsRleKKeslQej/umvUXvfDw2RDGZTGEUhZlmUuh6NUqbve6/NgPPDfR8jFiXdiQPTI
 bw94an0faHDmsRWtHCTVNTQUJX3RFSpz+85igHUs=
From: m-guelker@HIDDEN (Marvin =?UTF-8?Q?G=C3=BClker?=)
Date: Sun, 27 Jan 2019 19:09:59 +0100
Message-ID: <87munm7z0o.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 93.90.117.154
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Spam-Score: 1.0 (+)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)


The ansi-term (and likewise, term) modes fail to properly display the
Unicode drawing characters used by the tree(1) command. Steps to
reproduce:

1. Run M-x ansi-term
2. Switch to the directory you want to tree(1)
3. Execute tree command
4. The output looks like this:

    testtree
    0tqq Ba
    0tqq Bb
    0x   tqq Bb-a
    0x   mqq Bb-b
    0mqq Bc

Whereas it should look like this:

    testtree
    =E2=94=9C=E2=94=80=E2=94=80 a
    =E2=94=9C=E2=94=80=E2=94=80 b
    =E2=94=82   =E2=94=9C=E2=94=80=E2=94=80 b-a
    =E2=94=82   =E2=94=94=E2=94=80=E2=94=80 b-b
    =E2=94=94=E2=94=80=E2=94=80 c

This is on Debian Linux using the GUI emacs.



In GNU Emacs 25.1.1 (x86_64-pc-linux-gnu, GTK+ Version 3.22.11)
 of 2017-09-15, modified by Debian built on trouble
Windowing system distributor 'The X.Org Foundation', version 11.0.11902000
System Description:	Debian GNU/Linux 9.7 (stretch)

Configured using:
 'configure --build x86_64-linux-gnu --prefix=3D/usr
 --sharedstatedir=3D/var/lib --libexecdir=3D/usr/lib
 --localstatedir=3D/var/lib --infodir=3D/usr/share/info
 --mandir=3D/usr/share/man --with-pop=3Dyes
 --enable-locallisppath=3D/etc/emacs25:/etc/emacs:/usr/local/share/emacs/25=
.1/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/25.1/site-li=
sp:/usr/share/emacs/site-lisp
 --with-sound=3Dalsa --build x86_64-linux-gnu --prefix=3D/usr
 --sharedstatedir=3D/var/lib --libexecdir=3D/usr/lib
 --localstatedir=3D/var/lib --infodir=3D/usr/share/info
 --mandir=3D/usr/share/man --with-pop=3Dyes
 --enable-locallisppath=3D/etc/emacs25:/etc/emacs:/usr/local/share/emacs/25=
.1/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/25.1/site-li=
sp:/usr/share/emacs/site-lisp
 --with-sound=3Dalsa --with-x=3Dyes --with-x-toolkit=3Dgtk3
 --with-toolkit-scroll-bars 'CFLAGS=3D-g -O2
 -fdebug-prefix-map=3D/build/emacs25-wN2qS3/emacs25-25.1+1=3D. -fstack-prot=
ector-strong
 -Wformat -Werror=3Dformat-security -Wall' 'CPPFLAGS=3D-Wdate-time
 -D_FORTIFY_SOURCE=3D2' LDFLAGS=3D-Wl,-z,relro'

Configured features:
XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GCONF GSETTINGS
NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB
TOOLKIT_SCROLL_BARS GTK3 X11

Important settings:
  value of $LANG: de_DE.UTF-8
  locale-coding-system: utf-8-unix

Major mode: Term

Minor modes in effect:
  tooltip-mode: t
  global-eldoc-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug message dired format-spec rfc822 mml
mml-sec password-cache epg epg-config gnus-util mm-decode mm-bodies
mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail
rfc2047 rfc2045 ietf-drums mm-util help-fns help-mode cl-loaddefs pcase
cl-lib mail-prsvr mail-utils term disp-table easymenu ehelp ring
time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks
lisp-float-type mwheel x-win term/common-win x-dnd tool-bar dnd fontset
image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode
prog-mode register page menu-bar rfn-eshadow timer select scroll-bar
mouse jit-lock font-lock syntax facemenu font-core frame cl-generic cham
georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao
korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech
european ethiopic indian cyrillic chinese charscript case-table epa-hook
jka-cmpr-hook help simple abbrev minibuffer cl-preloaded nadvice
loaddefs button faces cus-face macroexp files text-properties overlay
sha1 md5 base64 format env code-pages mule custom widget
hashtable-print-readable backquote dbusbind inotify dynamic-setting
system-font-setting font-render-setting move-toolbar gtk x-toolkit x
multi-tty make-network-process emacs)

Memory information:
((conses 16 90204 7403)
 (symbols 48 20271 0)
 (miscs 40 53 146)
 (strings 32 15590 4312)
 (string-bytes 1 444050)
 (vectors 16 12487)
 (vector-slots 8 438436 6828)
 (floats 8 164 11)
 (intervals 56 329 17)
 (buffers 976 19))




Message sent:


Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Mailer: MIME-tools 5.505 (Entity 5.505)
Content-Type: text/plain; charset=utf-8
X-Loop: help-debbugs@HIDDEN
From: help-debbugs@HIDDEN (GNU bug Tracking System)
To: m-guelker@HIDDEN (Marvin =?UTF-8?Q?G=C3=BClker?=)
Subject: bug#34224: Acknowledgement (25.1; ansi-term displays garbage on
 tree(1) command)
Message-ID: <handler.34224.B.154861262820571.ack <at> debbugs.gnu.org>
References: <87munm7z0o.fsf@HIDDEN>
X-Gnu-PR-Message: ack 34224
X-Gnu-PR-Package: emacs
Reply-To: 34224 <at> debbugs.gnu.org
Date: Sun, 27 Jan 2019 18:11:01 +0000

Thank you for filing a new bug report with debbugs.gnu.org.

This is an automatically generated reply to let you know your message
has been received.

Your message is being forwarded to the package maintainers and other
interested parties for their attention; they will reply in due course.

Your message has been sent to the package maintainer(s):
 bug-gnu-emacs@HIDDEN

If you wish to submit further information on this problem, please
send it to 34224 <at> debbugs.gnu.org.

Please do not send mail to help-debbugs@HIDDEN unless you wish
to report a problem with the Bug-tracking system.

--=20
34224: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D34224
GNU Bug Tracking System
Contact help-debbugs@HIDDEN with problems


Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#34224: 25.1; ansi-term displays garbage on tree(1) command
Resent-From: Phil Sainty <psainty@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Mon, 28 Jan 2019 11:04:01 +0000
Resent-Message-ID: <handler.34224.B34224.154867343925538 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 34224
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Marvin =?UTF-8?Q?G=C3=BClker?= <m-guelker@HIDDEN>, 34224 <at> debbugs.gnu.org
Received: via spool by 34224-submit <at> debbugs.gnu.org id=B34224.154867343925538
          (code B ref 34224); Mon, 28 Jan 2019 11:04:01 +0000
Received: (at 34224) by debbugs.gnu.org; 28 Jan 2019 11:03:59 +0000
Received: from localhost ([127.0.0.1]:48252 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1go4hr-0006dp-Do
	for submit <at> debbugs.gnu.org; Mon, 28 Jan 2019 06:03:59 -0500
Received: from smtp-4.orcon.net.nz ([60.234.4.59]:38470)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <psainty@HIDDEN>) id 1go4ho-0006dd-KX
 for 34224 <at> debbugs.gnu.org; Mon, 28 Jan 2019 06:03:57 -0500
Received: from [150.107.172.32] (port=42315 helo=[192.168.20.103])
 by smtp-4.orcon.net.nz with esmtpa (Exim 4.86_2)
 (envelope-from <psainty@HIDDEN>)
 id 1go4hl-0008AM-DH; Tue, 29 Jan 2019 00:03:53 +1300
References: <87munm7z0o.fsf@HIDDEN>
From: Phil Sainty <psainty@HIDDEN>
Message-ID: <9e65e535-9295-14b1-86ca-8372eeebcb58@HIDDEN>
Date: Tue, 29 Jan 2019 00:03:53 +1300
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101
 Thunderbird/60.2.1
MIME-Version: 1.0
In-Reply-To: <87munm7z0o.fsf@HIDDEN>
Content-Type: text/plain; charset=utf-8
Content-Language: en-GB
Content-Transfer-Encoding: 7bit
X-GeoIP: NZ
X-Spam_score: -2.9
X-Spam_score_int: -28
X-Spam_bar: --
X-Spam-Score: -0.7 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

FYI I can't replicate that in 25.3 or 26.1 under Ubuntu GNU/Linux 18.04.

(i.e. The tree output looks correct to me.)

Does the same thing happen if you run emacs -Q ?

Are you able to install 25.3 for testing?

Perhaps this is just a font problem at your end?


-Phil




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#34224: 25.1; ansi-term displays garbage on tree(1) command
Resent-From: Marvin =?UTF-8?Q?G=C3=BClker?= <m-guelker@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Mon, 28 Jan 2019 13:12:02 +0000
Resent-Message-ID: <handler.34224.B34224.154868106312585 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 34224
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Phil Sainty <psainty@HIDDEN>
Cc: 34224 <at> debbugs.gnu.org
Received: via spool by 34224-submit <at> debbugs.gnu.org id=B34224.154868106312585
          (code B ref 34224); Mon, 28 Jan 2019 13:12:02 +0000
Received: (at 34224) by debbugs.gnu.org; 28 Jan 2019 13:11:03 +0000
Received: from localhost ([127.0.0.1]:48315 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1go6gp-0003Gu-IL
	for submit <at> debbugs.gnu.org; Mon, 28 Jan 2019 08:11:03 -0500
Received: from mx.shared.smtp.dk ([93.90.117.179]:36320)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m-guelker@HIDDEN>) id 1go6gn-0003GS-NZ
 for 34224 <at> debbugs.gnu.org; Mon, 28 Jan 2019 08:11:03 -0500
Received: from montblanc.guelker.eu (unknown [193.25.100.36])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (No client certificate requested)
 (Authenticated sender: outmail@HIDDEN)
 by mysmtp.com (Postfix) with ESMTPSA id 43p90K54kRz2xLq;
 Mon, 28 Jan 2019 14:07:45 +0100 (CET)
Received: from localhost (localhost [127.0.0.1]) (Authenticated sender: mg)
 by montblanc.guelker.eu (Postfix) with ESMTPSA id 3B251E06A4;
 Mon, 28 Jan 2019 13:10:59 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=guelker.eu;
 s=montblanc; t=1548681059;
 bh=eu1YL6QKHFLwpvH3mgmfm/qYOejeRUWMgJZZ4YSNXuE=;
 h=Date:From:To:Cc:Subject:References:In-Reply-To;
 b=NP2QDzntND/CwnfEfRN9+RdvJDoMGd+fe0GvVUZhRhlgp0f9vtOvJyjHwLpa3FdGe
 RbepjbhhHg10otWS1MjoO1E57lV4YSq4QN6qW0oJXx5Wxb/F8gCazxfW12LHDRwa7/
 LkV0BNr6JZspN/kaobGshi6cQwwbh3Y3NwQ6kEHI=
Date: Mon, 28 Jan 2019 14:10:53 +0100
From: Marvin =?UTF-8?Q?G=C3=BClker?= <m-guelker@HIDDEN>
Message-ID: <20190128131053.fdxv6giultliuocn@atlantis>
References: <87munm7z0o.fsf@HIDDEN>
 <9e65e535-9295-14b1-86ca-8372eeebcb58@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <9e65e535-9295-14b1-86ca-8372eeebcb58@HIDDEN>
User-Agent: NeoMutt/20170113 (1.7.2)
X-Spam-Score: -0.0 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Am 29. Januar 2019 um 00:03 Uhr +1300 schrieb Phil Sainty:
> FYI I can't replicate that in 25.3 or 26.1 under Ubuntu GNU/Linux 18.04.
> 
> (i.e. The tree output looks correct to me.)
> 
> Does the same thing happen if you run emacs -Q ?

Yes, it happens with emacs -Q. But when I reported the bug, I forgot
that since pretty much forever I had an alias for "tree" in my zsh
config that aliases the tree command to "tree -AC". Removing the alias
solves the problem. Fiddling shows the it's the -A option that causes
the problem. So, the actual problem is that ansi-term doesn't work
with tree's -A option.

Given that the -A option is declared as a "hack" in tree's manual page,
I don't know whether it should actually be cared about. I don't really
remember what made me turn this option on in my alias. Since a few years
I use urxvt as my terminal emulator, so it might have been a faulty
terminal emulator. When I switched to urxvt, I probably forgot about
it. urxvt never had a problem with that option, though.

> Are you able to install 25.3 for testing?

Yes, I just compiled it from source. The problem still exists with emacs
25.3.

> Perhaps this is just a font problem at your end?

See above; it's tree's -A option.

Marvin

-- 
Blog: https://mg.guelker.eu
PGP/GPG ID: F1D8799FBCC8BC4F




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#34224: 25.1; ansi-term displays garbage on tree(1) command
Resent-From: Eli Zaretskii <eliz@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Mon, 28 Jan 2019 15:49:01 +0000
Resent-Message-ID: <handler.34224.B34224.154869048627661 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 34224
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Marvin =?UTF-8?Q?G=C3=BClker?= <m-guelker@HIDDEN>
Cc: psainty@HIDDEN, 34224 <at> debbugs.gnu.org
Received: via spool by 34224-submit <at> debbugs.gnu.org id=B34224.154869048627661
          (code B ref 34224); Mon, 28 Jan 2019 15:49:01 +0000
Received: (at 34224) by debbugs.gnu.org; 28 Jan 2019 15:48:06 +0000
Received: from localhost ([127.0.0.1]:49295 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1go98n-0007C4-To
	for submit <at> debbugs.gnu.org; Mon, 28 Jan 2019 10:48:06 -0500
Received: from eggs.gnu.org ([209.51.188.92]:49126)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1go98j-0007B8-OA
 for 34224 <at> debbugs.gnu.org; Mon, 28 Jan 2019 10:48:02 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e]:53139)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1go98c-0002wt-MM; Mon, 28 Jan 2019 10:47:54 -0500
Received: from [176.228.60.248] (port=1166 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1go98c-0001wR-3s; Mon, 28 Jan 2019 10:47:54 -0500
Date: Mon, 28 Jan 2019 17:47:41 +0200
Message-Id: <83zhrk3hsy.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
In-reply-to: <20190128131053.fdxv6giultliuocn@atlantis> (message from Marvin
 =?UTF-8?Q?G=C3=BClker?= on Mon, 28 Jan 2019 14:10:53 +0100)
References: <87munm7z0o.fsf@HIDDEN>
 <9e65e535-9295-14b1-86ca-8372eeebcb58@HIDDEN>
 <20190128131053.fdxv6giultliuocn@atlantis>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Spam-Score: -0.0 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

> Date: Mon, 28 Jan 2019 14:10:53 +0100
> From: Marvin Gülker <m-guelker@HIDDEN>
> Cc: 34224 <at> debbugs.gnu.org
> 
> Yes, it happens with emacs -Q. But when I reported the bug, I forgot
> that since pretty much forever I had an alias for "tree" in my zsh
> config that aliases the tree command to "tree -AC". Removing the alias
> solves the problem. Fiddling shows the it's the -A option that causes
> the problem. So, the actual problem is that ansi-term doesn't work
> with tree's -A option.
> 
> Given that the -A option is declared as a "hack" in tree's manual page,
> I don't know whether it should actually be cared about.

If someone can tell what does 'tree' do to "turn on ANSI line graphics
hack", then perhaps we could decide whether there's something wrong
with how Emacs interprets the bytestream delivered to it by 'tree' in
this mode.




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#34224: 25.1; ansi-term displays garbage on tree(1) command
Resent-From: Phil Sainty <psainty@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Mon, 28 Jan 2019 21:12:02 +0000
Resent-Message-ID: <handler.34224.B34224.154870986926080 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 34224
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Eli Zaretskii <eliz@HIDDEN>
Cc: 34224 <at> debbugs.gnu.org, Marvin =?UTF-8?Q?G=C3=BClker?= <m-guelker@HIDDEN>
Received: via spool by 34224-submit <at> debbugs.gnu.org id=B34224.154870986926080
          (code B ref 34224); Mon, 28 Jan 2019 21:12:02 +0000
Received: (at 34224) by debbugs.gnu.org; 28 Jan 2019 21:11:09 +0000
Received: from localhost ([127.0.0.1]:49559 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1goEBR-0006mZ-26
	for submit <at> debbugs.gnu.org; Mon, 28 Jan 2019 16:11:09 -0500
Received: from smtp-4.orcon.net.nz ([60.234.4.59]:46300)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <psainty@HIDDEN>) id 1goEBN-0006mL-MH
 for 34224 <at> debbugs.gnu.org; Mon, 28 Jan 2019 16:11:06 -0500
Received: from [10.253.37.70] (port=47522 helo=webmail.orcon.net.nz)
 by smtp-4.orcon.net.nz with esmtpa (Exim 4.86_2)
 (envelope-from <psainty@HIDDEN>)
 id 1goEBC-00069d-J5; Tue, 29 Jan 2019 10:10:55 +1300
Received: from wlgwil-nat-office.catalyst.net.nz ([202.78.240.7])
 via [10.253.37.253] by webmail.orcon.net.nz
 with HTTP (HTTP/1.1 POST); Tue, 29 Jan 2019 10:10:54 +1300
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8;
 format=flowed
Content-Transfer-Encoding: 8bit
Date: Tue, 29 Jan 2019 10:10:54 +1300
From: Phil Sainty <psainty@HIDDEN>
In-Reply-To: <83zhrk3hsy.fsf@HIDDEN>
References: <87munm7z0o.fsf@HIDDEN>
 <9e65e535-9295-14b1-86ca-8372eeebcb58@HIDDEN>
 <20190128131053.fdxv6giultliuocn@atlantis> <83zhrk3hsy.fsf@HIDDEN>
Message-ID: <4734c77f267638c51f581a8587948513@HIDDEN>
X-Sender: psainty@HIDDEN
User-Agent: Orcon Webmail
X-GeoIP: --
X-Spam_score: -2.9
X-Spam_score_int: -28
X-Spam_bar: --
X-Spam-Score: -0.7 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

On 2019-01-29 04:47, Eli Zaretskii wrote:
> If someone can tell what does 'tree' do to "turn on ANSI line graphics
> hack", then perhaps we could decide whether there's something wrong
> with how Emacs interprets the bytestream delivered to it by 'tree' in
> this mode.

Does this help?


$ tree -A | cat -v
.
^[(0tqq ^[(Bbar
^[(0tqq ^[(Bfoo
^[(0mqq ^[(Bsubdir
^[(0    tqq ^[(Bbar
^[(0    mqq ^[(Bfoo

1 directory, 4 files


$ tree -A
.
0tqq Bbar
0tqq Bfoo
0mqq Bsubdir
0    tqq Bbar
0    mqq Bfoo

1 directory, 4 files


$ tree
.
├── bar
├── foo
└── subdir
     ├── bar
     └── foo

1 directory, 4 files


I note that the 'tqq' and 'mqq' match up with the VT column at:

http://www.robelle.com/smugbook/linedraw.html






Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#34224: 25.1; ansi-term displays garbage on tree(1) command
Resent-From: Eli Zaretskii <eliz@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Tue, 29 Jan 2019 16:18:02 +0000
Resent-Message-ID: <handler.34224.B34224.154877864117734 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 34224
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Phil Sainty <psainty@HIDDEN>
Cc: 34224 <at> debbugs.gnu.org, m-guelker@HIDDEN
Received: via spool by 34224-submit <at> debbugs.gnu.org id=B34224.154877864117734
          (code B ref 34224); Tue, 29 Jan 2019 16:18:02 +0000
Received: (at 34224) by debbugs.gnu.org; 29 Jan 2019 16:17:21 +0000
Received: from localhost ([127.0.0.1]:50743 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1goW4e-0004bw-J9
	for submit <at> debbugs.gnu.org; Tue, 29 Jan 2019 11:17:20 -0500
Received: from eggs.gnu.org ([209.51.188.92]:58528)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>)
 id 1goW4c-0004bb-85; Tue, 29 Jan 2019 11:17:18 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e]:47404)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1goW4V-0000hv-V3; Tue, 29 Jan 2019 11:17:12 -0500
Received: from [176.228.60.248] (port=4151 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1goW4V-00089c-ID; Tue, 29 Jan 2019 11:17:11 -0500
Date: Tue, 29 Jan 2019 18:17:00 +0200
Message-Id: <83imy730cj.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
In-reply-to: <4734c77f267638c51f581a8587948513@HIDDEN> (message
 from Phil Sainty on Tue, 29 Jan 2019 10:10:54 +1300)
References: <87munm7z0o.fsf@HIDDEN>
 <9e65e535-9295-14b1-86ca-8372eeebcb58@HIDDEN>
 <20190128131053.fdxv6giultliuocn@atlantis> <83zhrk3hsy.fsf@HIDDEN>
 <4734c77f267638c51f581a8587948513@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Spam-Score: -0.0 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

severity 34224 wishlist
thanks

> Date: Tue, 29 Jan 2019 10:10:54 +1300
> From: Phil Sainty <psainty@HIDDEN>
> Cc: Marvin Gülker <m-guelker@HIDDEN>,
>  34224 <at> debbugs.gnu.org
> 
> On 2019-01-29 04:47, Eli Zaretskii wrote:
> > If someone can tell what does 'tree' do to "turn on ANSI line graphics
> > hack", then perhaps we could decide whether there's something wrong
> > with how Emacs interprets the bytestream delivered to it by 'tree' in
> > this mode.
> 
> Does this help?
> 
> 
> $ tree -A | cat -v
> .
> ^[(0tqq ^[(Bbar
> ^[(0tqq ^[(Bfoo
> ^[(0mqq ^[(Bsubdir
> ^[(0    tqq ^[(Bbar
> ^[(0    mqq ^[(Bfoo
> 
> 1 directory, 4 files

Yes, thanks.  These are escape sequences which term.el doesn't
currently support:

  (defun term-emulate-terminal (proc str)
  [...]
		  ;; Ignore NUL, Shift Out, Shift In.
		  ((or ?\0 #xE #xF 'nil) nil))

Patches to add such support are welcome.




Message received at control <at> debbugs.gnu.org:


Received: (at control) by debbugs.gnu.org; 29 Jan 2019 16:17:20 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jan 29 11:17:20 2019
Received: from localhost ([127.0.0.1]:50741 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1goW4e-0004br-7J
	for submit <at> debbugs.gnu.org; Tue, 29 Jan 2019 11:17:20 -0500
Received: from eggs.gnu.org ([209.51.188.92]:58528)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>)
 id 1goW4c-0004bb-85; Tue, 29 Jan 2019 11:17:18 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e]:47404)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1goW4V-0000hv-V3; Tue, 29 Jan 2019 11:17:12 -0500
Received: from [176.228.60.248] (port=4151 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1goW4V-00089c-ID; Tue, 29 Jan 2019 11:17:11 -0500
Date: Tue, 29 Jan 2019 18:17:00 +0200
Message-Id: <83imy730cj.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Phil Sainty <psainty@HIDDEN>
In-reply-to: <4734c77f267638c51f581a8587948513@HIDDEN> (message
 from Phil Sainty on Tue, 29 Jan 2019 10:10:54 +1300)
Subject: Re: bug#34224: 25.1; ansi-term displays garbage on tree(1) command
References: <87munm7z0o.fsf@HIDDEN>
 <9e65e535-9295-14b1-86ca-8372eeebcb58@HIDDEN>
 <20190128131053.fdxv6giultliuocn@atlantis> <83zhrk3hsy.fsf@HIDDEN>
 <4734c77f267638c51f581a8587948513@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: control
Cc: 34224 <at> debbugs.gnu.org, m-guelker@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

severity 34224 wishlist
thanks

> Date: Tue, 29 Jan 2019 10:10:54 +1300
> From: Phil Sainty <psainty@HIDDEN>
> Cc: Marvin Gülker <m-guelker@HIDDEN>,
>  34224 <at> debbugs.gnu.org
> 
> On 2019-01-29 04:47, Eli Zaretskii wrote:
> > If someone can tell what does 'tree' do to "turn on ANSI line graphics
> > hack", then perhaps we could decide whether there's something wrong
> > with how Emacs interprets the bytestream delivered to it by 'tree' in
> > this mode.
> 
> Does this help?
> 
> 
> $ tree -A | cat -v
> .
> ^[(0tqq ^[(Bbar
> ^[(0tqq ^[(Bfoo
> ^[(0mqq ^[(Bsubdir
> ^[(0    tqq ^[(Bbar
> ^[(0    mqq ^[(Bfoo
> 
> 1 directory, 4 files

Yes, thanks.  These are escape sequences which term.el doesn't
currently support:

  (defun term-emulate-terminal (proc str)
  [...]
		  ;; Ignore NUL, Shift Out, Shift In.
		  ((or ?\0 #xE #xF 'nil) nil))

Patches to add such support are welcome.





Last modified: Mon, 25 Nov 2019 12:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.