From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2100.outbound.protection.outlook.com [40.107.93.100]) by sourceware.org (Postfix) with ESMTPS id C9A69387702B for ; Wed, 18 Mar 2020 01:03:19 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org C9A69387702B ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bgyveqnDBIKAzQXBv5rLIbo9dSs/Dz2PYQlx9MGWHbFQuJnTXg5jtIIWcPGspajo2lrI836sE5ThfM2U9R6ch7acm3b5j1YH/axicLpK+yGsoVpLxX4dDyPZJmtgpNU488lPZ5vD1od+D1FXdPgY8TblCneOeKiRTzkkgZGATHWWgYt+4aTMVOjS/jYQZ0HGTpnlOyqOqWiQ/f4XUtCNUqEBfW+xDjOkCCj1Xqxnlji2DFleb68rwJqm/ULywfkld8DcLOIZLKkURX6QS25GX522svX+oPR9u9evdxJGrvXGZWezbKgN0QTwELF28BTCcXk0C28w/kY29+NXDyNo+Q== 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=1Gf0w11b5i5H3zfH9hNjcolqxecMDBFsTbfBiGJuM20=; b=ORBcwUv/pE9iACbyJ/Wp8adwtxTeh+5bOByDh7f2jvEU0+BRF2FLQLj7YDnuOgEgGIjYC4xeIfFQRjx7sSyU4u1vUIQ1rxFjlN88W6XY2l2jYQQ1gM2UhWa4nVYoLNCE/E664AnSOH7hABKJ2lPuiXM/szbMDWj7E34Ggj0MHltVQBpSsZWV90sGEjYFbQRgcobB+NXZTmtLZpQX09/2vjz3N2gX3BsKLze2aKMmmtjWKWta/FOaFvO7d1J75ravL8AHrzcloBI0hB5uQGYOl5TBTwp3Xhyw2Wz0S91KH7wieph9VQwfAHXlnsp9EphUy+SvtvncVAC8qL+Jx21DqA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=cornell.edu; dmarc=pass action=none header.from=cornell.edu; dkim=pass header.d=cornell.edu; arc=none Received: from MN2PR04MB6429.namprd04.prod.outlook.com (2603:10b6:208:1b0::12) by MN2PR04MB6240.namprd04.prod.outlook.com (2603:10b6:208:e2::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2814.18; Wed, 18 Mar 2020 01:03:17 +0000 Received: from MN2PR04MB6429.namprd04.prod.outlook.com ([fe80::b14d:695f:47b9:f441]) by MN2PR04MB6429.namprd04.prod.outlook.com ([fe80::b14d:695f:47b9:f441%6]) with mapi id 15.20.2793.023; Wed, 18 Mar 2020 01:03:17 +0000 Subject: Re: After cygwin upgrade, Emacs shell buffers with colors are corrupted To: cygwin@cygwin.com References: From: Ken Brown Message-ID: <77d22efc-4a2c-422a-c7d5-22b5632e707d@cornell.edu> Date: Tue, 17 Mar 2020 21:03:15 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-ClientProxiedBy: CH2PR19CA0010.namprd19.prod.outlook.com (2603:10b6:610:4d::20) To MN2PR04MB6429.namprd04.prod.outlook.com (2603:10b6:208:1b0::12) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from [192.168.0.17] (68.175.129.7) by CH2PR19CA0010.namprd19.prod.outlook.com (2603:10b6:610:4d::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2814.18 via Frontend Transport; Wed, 18 Mar 2020 01:03:17 +0000 X-Originating-IP: [68.175.129.7] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 2bbc104f-8c32-43ed-26d0-08d7cad824e0 X-MS-TrafficTypeDiagnostic: MN2PR04MB6240: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:10000; X-Forefront-PRVS: 03468CBA43 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(4636009)(136003)(366004)(39860400002)(396003)(376002)(346002)(199004)(956004)(2616005)(6486002)(81166006)(8936002)(6916009)(31696002)(16526019)(26005)(186003)(75432002)(36756003)(31686004)(86362001)(66556008)(66476007)(66946007)(8676002)(53546011)(2906002)(16576012)(5660300002)(316002)(81156014)(786003)(478600001)(52116002); DIR:OUT; SFP:1102; SCL:1; SRVR:MN2PR04MB6240; H:MN2PR04MB6429.namprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; Received-SPF: None (protection.outlook.com: cornell.edu does not designate permitted sender hosts) X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: anqeAH4rLifvUGx+zE195jYL0nubQcGkgSZYHtKVHAxUaS7Z4Q9GoyIjzb8XgLPKQlpMfzW410ZABMhrv62+1gMBp4/6P6iwmdmul8y7HWJH2vnjE8gt0o6f2l8x7VhoMdpN/Nesmny1ONonWOiVRDGKDPlKLRuotdlGh+DEHFGGIM5aQ1/WDUonPHSp6/b+pbWwAuQL10iQgocZ8iALQPQgM020/wSR2/HErccREvUp6gj009UNv0/03kBPqMpwLgz4dbMmdjj8Nt91NkUhDCwASkKhT7LcWCfF7f5pZ7DJjJ3LQwmMf0H5JPIeXySfJYbpza/ET/6/dSD/4LnlbVBslMgwXgxC6Zi6qw//yELunbGUR/LyqgPynUG5U7B0nQa0QYkxcbjef2n4gR+T4oAjAESnlmNJYdqD1ScOArgI1L7PTJuDQfrbZgVaz0Gr X-MS-Exchange-AntiSpam-MessageData: kB3DtJQkfodo0F3MqY3fcc9Rs+e7IEZZ7ohBNXkof0KrbjGxz7/AfZ14YGwBGw7vgkb4n997/hisBfIw/k0+dEMZhmzk9fTjeZUdS/PvzJSXFnla+x6eLFMjPZNOeoZnoH/+ESkB6maUih1TuQOriQ== X-OriginatorOrg: cornell.edu X-MS-Exchange-CrossTenant-Network-Message-Id: 2bbc104f-8c32-43ed-26d0-08d7cad824e0 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Mar 2020 01:03:17.8413 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 5d7e4366-1b9b-45cf-8e79-b14b27df46e1 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: ErENIwFyz4Oy0G+gYugZxiEYQN6PGPBWoj2NSFVdEUrnHFAz/abmjgl1GM5fhbIqjk1nRFUfUwVKnaCaNDQpkw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR04MB6240 X-Spam-Status: No, score=-4.4 required=5.0 tests=DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_2, KAM_ASCII_DIVIDERS, MSGID_FROM_MTA_HEADER, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: cygwin@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Cygwin mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Mar 2020 01:03:20 -0000 On 3/17/2020 7:14 PM, David Karr via Cygwin wrote: > Yesterday I upgraded Cygwin, which I hadn't done in a while. I had recently > upgraded my Windows 10 OS from build 1709 to 1809 (yes, those are correct). > > My current Emacs version is 26.3, but I don't know what it was before the > upgrade. > > If I create a shell buffer and execute a command that produces plain, > uncolored output, it appears to work fine. However, output from "Maven" > has always been colorized for me, and it's always worked fine. Today, I'm > seeing that the output is severely corrupted. If I pipe the output into a > file and view that, which doesn't have colors, the contents are fine. I > also ran the same process in a mintty window, which is colorized in the > same way, and that is also working fine. > > For instance, if this is what I see in a mintty buffer: > ----------------------- > [WACDTL03DK068X:~/git/cartms] mvn package > Java HotSpot(TM) 64-Bit Server VM warning: ignoring option > MaxPermSize=128m; sup > port was removed in 8.0 > [INFO] Scanning for projects... > [WARNING] > ... > ------------------------- > > What I see in the Emacs shell buffer is something like this: > ------------------------- > [WACDTL03DK068X:~/git/cartms] mvn package > [WACDTL03DK068X:~/git/cartms] [WACDTL03DK068X:~/git/cartms] Java > HotSpot(TM) 64- > Bit Server VM warning:ignoring option MaxPermSize=128m; support was removed > in > 8.0 > [INFO] Scanning for projects...[ > [WARNING] l > > > > > > .... > --------------------------- > > The first thing I see is that it prints the shell prompt twice AFTER > pressing enter on the command line to run. That might possibly be an issue > with my Bash dot files, but this didn't happen before the Cygwin upgrade, > and it doesn't happen in the mintty window. > > After that, it gets even worse. The "Java HotSpot ..." line prints in > three lines, instead of a single line. Then, the first "WARNING" line has > the "l" at the end of the line, and then numerous blank lines. The rest of > the output is mangled in other ways. > > Any ideas what might be wrong here? This is probably related to the new pty code. Does it help if you start emacs like this? CYGWIN=disable_pcon emacs If so, that confirms my guess and gives you a workaround. Ken