From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Morgan Smith Newsgroups: gmane.emacs.bugs Subject: bug#46332: Eshell color control characters not displayed correctly Date: Tue, 9 Feb 2021 14:31:07 -0500 Message-ID: References: <877dnleaa7.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4243"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Icedove/78.7.1 Cc: 46332@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Feb 09 20:36:21 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l9Yo8-0000yG-BC for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 09 Feb 2021 20:36:20 +0100 Original-Received: from localhost ([::1]:57846 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l9Yo7-0000GC-9e for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 09 Feb 2021 14:36:19 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57656) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l9Yjy-0005Cd-7L for bug-gnu-emacs@gnu.org; Tue, 09 Feb 2021 14:32:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:43144) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l9Yjx-0002cY-SF for bug-gnu-emacs@gnu.org; Tue, 09 Feb 2021 14:32:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l9Yjx-0004vk-NR for bug-gnu-emacs@gnu.org; Tue, 09 Feb 2021 14:32:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Morgan Smith Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 09 Feb 2021 19:32:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46332 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 46332-submit@debbugs.gnu.org id=B46332.161289909717627 (code B ref 46332); Tue, 09 Feb 2021 19:32:01 +0000 Original-Received: (at 46332) by debbugs.gnu.org; 9 Feb 2021 19:31:37 +0000 Original-Received: from localhost ([127.0.0.1]:54690 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l9YjY-0004Zl-Dc for submit@debbugs.gnu.org; Tue, 09 Feb 2021 14:31:37 -0500 Original-Received: from mail-co1nam11olkn2039.outbound.protection.outlook.com ([40.92.18.39]:65121 helo=NAM11-CO1-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l9YjT-0004Qp-LG for 46332@debbugs.gnu.org; Tue, 09 Feb 2021 14:31:35 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fFnflM5jxsmDT+gMnnkJEBIWlnqVUqU3+tgcRydr3ce4Q7N7TIiAm6SCj8jAx+KJy2KVPCk6RLGILiIaqCpxeebHtdosOE4g0xYpIjZEeLf0XlJrp3rD07sXyuIyRLcyrkOqkTEOuwMnt+9K7tEL8NQVTk3DA+GOeMiyZn3fk/fGFhNEdRf4mXpjns8CupB6g26QEU4wpWURtR0rM4x8sBur3g5e8mK8kHfPv6UGtVML20EBpEEPUEbZotBwF3+yayYPXwFqGzJhKkdtZSVJzmy+h9e34nfwE8Mrm7oMVD4h/8ITHP9CmgL/eqW/tEtcx9HJlWZajbdJagU7gS4+1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=4Q824ZzQgfN0pCtjtvr3IAOiqaXJNrPrGfmaaomqWdI=; b=M4KRPxNK4WmYsf7OmtRGFq7w48NskUHu95UMx/GZjkusCNQgJu3/yGRAu6kGMib3MYNbU9Tn5g97Qsfq0y9kIZUk8RChEa3f+NRwrgt+Dt/FGBvol9RYPUkFzHS1uptYtSh7j74C9xsneI0kJgM4SJ5Lhx9ZcyuRKGUWgmyHJYndhXU0KFVhN5zz78AliJ1Okz7EiX2NFEAZEo6lts2yjQJ181WOkQyvnAlAGLJycoGM/R6c1eiyNSKJ/ib7ohiyUALsOhhkYcuW72wQv4VTD+Z+ZcFkL1+iJbvcQOxJqQfJxNdRD53pHh/aBlng9fsh7dFNhqX1hZXAD/2kxvjDDQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=4Q824ZzQgfN0pCtjtvr3IAOiqaXJNrPrGfmaaomqWdI=; b=in5WQzoN8QjphBIw6ZF1Z+jKagu6W7qNWSArTp/TvrPnhqPvedC3XJjGCgbAUI/EDkLJbQdC20Y4CHI+ZfF1KrUCGFq1tvqVsgfjDYj6o4jmSTYBnpaP1UlFxETdArpHqTX4WWLNp3PZDbHdCPySvzqbCVzRrrdSEFWVMy0RJacfhOm2KLNdsxHhvvGqHenIar6hv/W3FwdvHeIjhdzR8Qh1kx7xWjtEPw8SIfHKYtZqS91bB29k5Q4awDdziwxHpCM0kJrp5yJR6dUTWdkN6wkT8GkDGykFQH7J0x8LGAWSr1QJZUz+uNk9QKepGRjM/LcipbRSmCScOOOdujqm1A== Original-Received: from DM6NAM11FT015.eop-nam11.prod.protection.outlook.com (2a01:111:e400:fc4d::47) by DM6NAM11HT032.eop-nam11.prod.protection.outlook.com (2a01:111:e400:fc4d::445) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3784.12; Tue, 9 Feb 2021 19:31:25 +0000 Original-Received: from SN4PR0801MB3679.namprd08.prod.outlook.com (10.13.172.60) by DM6NAM11FT015.mail.protection.outlook.com (10.13.172.133) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3784.12 via Frontend Transport; Tue, 9 Feb 2021 19:31:25 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:1FD663ABE4D2723553AE62DF46FA38DE41F8702EF5CAED889414F624DD155FFE; UpperCasedChecksum:91EF9247DB990B4F427BB9D8E61E4A2FA8811A9CDD25DBB8B38A9D6EBDC8C94A; SizeAsReceived:8710; Count:48 Original-Received: from SN4PR0801MB3679.namprd08.prod.outlook.com ([fe80::6458:e32b:44a8:55ee]) by SN4PR0801MB3679.namprd08.prod.outlook.com ([fe80::6458:e32b:44a8:55ee%3]) with mapi id 15.20.3825.023; Tue, 9 Feb 2021 19:31:24 +0000 In-Reply-To: <877dnleaa7.fsf@gnus.org> Content-Language: en-US X-TMN: [Rq7pfxENtXNrgpGEJNr+/O2zEOYBZAZk] X-ClientProxiedBy: YQXPR0101CA0038.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:c00:14::15) To SN4PR0801MB3679.namprd08.prod.outlook.com (2603:10b6:803:4f::22) X-Microsoft-Original-Message-ID: X-MS-Exchange-MessageSentRepresentingType: 1 Original-Received: from [192.168.2.42] (70.30.20.190) by YQXPR0101CA0038.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:c00:14::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3825.17 via Frontend Transport; Tue, 9 Feb 2021 19:31:09 +0000 X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 48 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: 87948b85-1467-458b-1e78-08d8cd3140e6 X-MS-TrafficTypeDiagnostic: DM6NAM11HT032: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: TwPSRpCWyHPibKaAsz+TNAD0wvR2RDdEktc715EZiKCyM1m1M8RvpXJaw81F+ZG7FUu9/dfNlMMEp9j4LqkX5MqasVkYa2dhoS4NdXDWVX0oXKRYBBmLEamuc1isVR7M4zYoj1lheFb6tdNicNCl5IRP5/Pfb7RYQm0pQEsrxDRDjNhojBEdqsZE2Jso92U1TalyWNorL0mvAjq8nxejsUGiacMPyagvLE8NrPx1cp074azF8h4yu8aZD2tlSfhscM7CyfgbvLHZ/a0iTaZhNVSmRoyPVdcxagoAujha2hli6gbl8NcKvfMOFx7jQ8DepiCGZu6BG+w+73dZzCh1iffB+Os0iqxaLL6XxMKG0llIEjepU+z0x1yD3Omm5GvH X-MS-Exchange-AntiSpam-MessageData: yvVXrXyz8k2PMYe5Ebvx0vtzpgY6NjhnvoLO8op//9TZyWzGKQXGPilTODLZCi09LprT0ylN7ceDG+58zU+3WsL9N+2fYSGzi623SiunH+bjIJJBd5e/mDIKudoTV6LqH9BT228Q0wtcPgIVBOIaRw== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 87948b85-1467-458b-1e78-08d8cd3140e6 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Feb 2021 19:31:24.7235 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-AuthSource: DM6NAM11FT015.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6NAM11HT032 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:199724 Archived-At: Hi Lars, Thanks for all the hard work you do! I read your blog :) I can't seem to be able to not reproduce this. Meaning no matter what I do the bug shows up. Maybe it's a compile flag issue? I'm using guix to build emacs so I'm wondering if you're willing to install guix (just the package manager, not the operating system) to check if that's the issue. Using this command I'm able to recreate the bug. This command boots up a container, creates a user for the container, and exposes pretty much nothing except the current working directory (so do this in a git repository to check). I expose /tmp too because X11 seems to want it but you might not have to. guix environment --preserve='^DISPLAY$' --expose=/tmp --with-commit=emacs-next=817a49748f0cd7f746ce1895d7c31c086289a91e --with-git-url=emacs-next=/home/USERNAME/src/emacs --user=testyboi -C --ad-hoc emacs-next git -- emacs -Q Then M-x eshell Then type: git log --color Around 300 lines later, the control characters start being printed verbatim. The amount of time until it happens seems to vary sometimes, but it always seems to happen eventually. If you don't want to install guix, I'll include the bug report stuff here: In GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.24, cairo version 1.16.0) Windowing system distributor 'The X.Org Foundation', version 11.0.12010000 Configured using: 'configure CONFIG_SHELL=/gnu/store/pwcp239kjf7lnj5i4lkdzcfcxwcfyk72-bash-minimal-5.0.16/bin/bash SHELL=/gnu/store/pwcp239kjf7lnj5i4lkdzcfcxwcfyk72-bash-minimal-5.0.16/bin/bash --prefix=/gnu/store/s0gxsqli2jx89sdj5xli8l44i7g49slr-emacs-next-git.817a497 --enable-fast-install --with-modules --with-cairo --disable-build-details' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG JSON LIBOTF LIBSELINUX LIBXML2 M17N_FLT MODULES NOTIFY INOTIFY PDUMPER PNG RSVG SOUND THREADS TIFF TOOLKIT_SCROLL_BARS X11 XDBE XIM XPM GTK3 ZLIB Important settings: value of $EMACSLOADPATH: /gnu/store/1wbb10gwhahy7gmh8n9csza1cl2mipwy-profile/share/emacs/site-lisp:/gnu/store/1wbb10gwhahy7gmh8n9csza1cl2mipwy-profile/share/emacs/28.0.50/lisp locale-coding-system: nil Major mode: Eshell Minor modes in effect: shell-dirtrack-mode: t eshell-prompt-mode: t eshell-hist-mode: t eshell-pred-mode: t eshell-cmpl-mode: t eshell-proc-mode: t eshell-arg-mode: t 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 Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs rfc822 mml mml-sec epa derived epg epg-config gnus-util rmail rmail-loaddefs auth-source eieio eieio-core cl-macs eieio-loaddefs password-cache json map text-property-search time-date subr-x seq byte-opt gv bytecomp byte-compile cconv mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils cl-seq em-unix em-term term disp-table easymenu shell ehelp em-script em-prompt em-ls cl-loaddefs cl-lib em-hist em-pred em-glob em-dirs esh-var em-cmpl pcomplete comint ansi-color ring em-basic em-banner em-alias esh-mode eshell esh-cmd esh-ext esh-opt esh-proc esh-io esh-arg esh-module esh-groups esh-util iso-transl tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame minibuffer 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 composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice button loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads dbusbind inotify dynamic-setting system-font-setting font-render-setting cairo move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 69622 6268) (symbols 48 8356 1) (strings 32 24845 1877) (string-bytes 1 835448) (vectors 16 14757) (vector-slots 8 195777 13108) (floats 8 27 32) (intervals 56 641 0) (buffers 984 12))