From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Pierre Neidhardt Newsgroups: gmane.emacs.bugs Subject: bug#27407: 25.2; SGR reset is ignored if it terminates Eshell's output Date: Sat, 17 Jun 2017 12:31:03 +0100 Message-ID: <20170617113103.GB7315@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1497699135 9420 195.159.176.226 (17 Jun 2017 11:32:15 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 17 Jun 2017 11:32:15 +0000 (UTC) User-Agent: Mutt/1.8.3 (2017-05-23) To: 27407@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jun 17 13:32:09 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dMBxY-00026a-Sg for geb-bug-gnu-emacs@m.gmane.org; Sat, 17 Jun 2017 13:32:09 +0200 Original-Received: from localhost ([::1]:34196 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dMBxe-0007eZ-1i for geb-bug-gnu-emacs@m.gmane.org; Sat, 17 Jun 2017 07:32:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59396) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dMBxX-0007eT-QV for bug-gnu-emacs@gnu.org; Sat, 17 Jun 2017 07:32:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dMBxS-0002UM-Nw for bug-gnu-emacs@gnu.org; Sat, 17 Jun 2017 07:32:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:49482) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dMBxS-0002U2-J5 for bug-gnu-emacs@gnu.org; Sat, 17 Jun 2017 07:32:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dMBxS-00088I-DW for bug-gnu-emacs@gnu.org; Sat, 17 Jun 2017 07:32:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Pierre Neidhardt Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 17 Jun 2017 11:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 27407 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: GNU Emacs bug Tracking System Original-Received: via spool by submit@debbugs.gnu.org id=B.149769908029232 (code B ref -1); Sat, 17 Jun 2017 11:32:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 17 Jun 2017 11:31:20 +0000 Original-Received: from localhost ([127.0.0.1]:52159 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dMBwm-0007bH-DV for submit@debbugs.gnu.org; Sat, 17 Jun 2017 07:31:20 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:40108) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dMBwk-0007WI-Vq for submit@debbugs.gnu.org; Sat, 17 Jun 2017 07:31:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dMBwe-00021U-Tp for submit@debbugs.gnu.org; Sat, 17 Jun 2017 07:31:13 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:57825) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dMBwe-00021M-Q6 for submit@debbugs.gnu.org; Sat, 17 Jun 2017 07:31:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59312) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dMBwd-0007ck-OF for bug-gnu-emacs@gnu.org; Sat, 17 Jun 2017 07:31:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dMBwY-0001y1-Mq for bug-gnu-emacs@gnu.org; Sat, 17 Jun 2017 07:31:11 -0400 Original-Received: from mail-wm0-x22f.google.com ([2a00:1450:400c:c09::22f]:36092) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dMBwY-0001xf-GB for bug-gnu-emacs@gnu.org; Sat, 17 Jun 2017 07:31:06 -0400 Original-Received: by mail-wm0-x22f.google.com with SMTP id m125so44429321wmm.1 for ; Sat, 17 Jun 2017 04:31:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:mime-version:content-disposition :content-transfer-encoding:user-agent; bh=d4XnawLBCLlaImua28EYmg2lGIE7RgwzB+eo2HrmPSU=; b=ecjpF4FqCjYTIJofIU9mwnyTKEn1vzuwzRlah5ABzvkqEO2fjy7MNqyf7QUj/yl1gJ krJIxnq5c+IML7bCD/azD2tWLzrJpfP6vXj7B657zbsxoPl4bYiiZYrvB2NgO1U5omIs iKFryTqbXOsh58DuAw2d7XKKjzOdK22z0EMcOKpz6cIw87ew5REIMzPAuzDK01yW3vJs Cf0WWh2QEEJgGpkTvh1IOKsKRF0P8bBgXPI3HE63+B6qu1y5mMji/xbQkB2emuBO6oly MSOrijKFxY4C/443HaDmH+GWEyhkK4u78W2vzbl4SDIGgiHbUy5ECf1vAgu+v1Zc9LIP 4h0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition:content-transfer-encoding:user-agent; bh=d4XnawLBCLlaImua28EYmg2lGIE7RgwzB+eo2HrmPSU=; b=cuiX23dNGK4LItrBhr2bYWuxKL2qZhZz1oUHM1YBSESFu/evnYFYtK+rgR+rH6nBxm VSATZIMEVvT0+6Dp6OkPDr/ABQ9/UQnFgSbzutZ778AjDwOFDBsTIGrXK0vkUlPwiBIw 6owHtcjM2Df3KiHUmXLtBj0yu6s5DIdkPmLAHO/GopvPn1GnRfrCOpnqrdmInYGfN1Cs fJzxqkD+tlVCLCpDmzcmz0kEUZqngnb3f2bF4MZxOmBnIrKSFcdlbaUP2os5wzE6RDFs OjFlFFKQ64b8OA8Kfa/bCXB4IEvNpV9zN/grIlwbMj+cSJHbZ1M1pVekZViuv2RNxxHf 4Neg== X-Gm-Message-State: AKS2vOzSVDPaLssk52F+6NzmUPwQU8C54HOvPJfdAJz35M/bnquFBI7g ox6ERW5oV6qxvkub X-Received: by 10.80.205.94 with SMTP id d30mr10226671edj.74.1497699065179; Sat, 17 Jun 2017 04:31:05 -0700 (PDT) Original-Received: from gmail.com ([196.203.31.130]) by smtp.gmail.com with ESMTPSA id o1sm3551975edc.22.2017.06.17.04.31.04 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 17 Jun 2017 04:31:04 -0700 (PDT) Content-Disposition: inline X-Info: Simplicity is the ultimate sophistication. X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:133692 Archived-At: Steps to reproduce: - M-x eshell - Enter "=1B[33mhello=1B[0m" The new prompt becomes yellow. It does not happen if the SGR reset sequence is not last. This is fine for instance: - echo "=1B[33mhello=1B[0m"X - echo -n "=1B[33mhello=1B[0m" Maybe an off-by-one error in the `ansi-*' function? In GNU Emacs 25.2.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.22.10) of 2017-04-22 built on juergen Windowing system distributor 'The X.Org Foundation', version 11.0.11903000 System Description: Arch Linux Configured using: 'configure --prefix=3D/usr --sysconfdir=3D/etc --libexecdir=3D/usr/lib --localstatedir=3D/var --with-x-toolkit=3Dgtk3 --with-xft --with-modules 'CFLAGS=3D-march=3Dx86-64 -mtune=3Dgeneric -O2 -pipe -fstack-protector-strong' CPPFLAGS=3D-D_FORTIFY_SOURCE=3D2 LDFLAGS=3D-Wl,-O1,--sort-common,--as-needed,-z,relro' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GCONF GSETTINGS NOTIFY ACL GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 MODULES Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix