X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B8DF339450E2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1584539094; bh=bU+drNgY5lwXFLyohXn8qDumszQDzAsK2uTSKLA4a8E=; h=References:In-Reply-To:Date:Subject:To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=NHRolO7OsDRiKoZMls7DGiI3sIJSwkZrWcTRWtSZg4qcZbDlRUXGRNsjFQ5j+vUF2 wyr9+eqDhWhO81h6DIVit/xJ4tu388tOlJiRpLQCFK+9r8pWl89QAwdq6GLPd2jjZV C25/h+Pw7KDCwFHQDRrzhxalKd49Oo+RftyOJhds= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 7EE5E393FC2D X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=BmlVHut8+TNq6Yn0JGNNTMzII+M94WZwdl3GwFiaH/s=; b=Nge7R+oeRMV6HE24zIxJ1bRjjKM+wR8EYuRSwZLq5hIIAXYZd3yeVFxSfB8mhAgf7H wvU/k4QM4iehyT+E3hm/tLUt6z538xeRPfOAFsBrNdnGXOuIQm+YVmnf3LZLvoNsSDVa BM2C559uGqy1JJOt0gTKOmBWIdDihAfMBfTZJ0ClEMicJne5SJtoIvSfH1Mg1eeXKKcY Jahbapg6BvHvNLsWFsX/knhrfmHCob2FBKOE04Nn9EESGLg7fhWLk8EfdW3nyDfCkeR/ 0ZBQSvRCwk5M4cpvgpTNXXDpRadQWz80pWh/6RSq4DR4blJ6kBbqyFjfuJZiHgzCmvXJ ODRg== X-Gm-Message-State: ANhLgQ0TKtobC2lgFnMWzqwwrLEp/W2Bn3nGYZEjzYP4cmx6rMPDDtbp gxGrF4v+VtU2hmtltKZxRBO2It3zH85ConX/B50= X-Google-Smtp-Source: ADFU+vsd2E9zD7pojq2H/PISr2Je0kB6/vYttA9byY3UGDKFttFQq3Wrr/Ii2otrIa2WIxECq/h+xA/EZbEoWzNHwIA= X-Received: by 2002:a9d:82a:: with SMTP id 39mr3867045oty.82.1584539090900; Wed, 18 Mar 2020 06:44:50 -0700 (PDT) MIME-Version: 1.0 References: <77d22efc-4a2c-422a-c7d5-22b5632e707d AT cornell DOT edu> In-Reply-To: <77d22efc-4a2c-422a-c7d5-22b5632e707d@cornell.edu> Date: Wed, 18 Mar 2020 06:44:37 -0700 Message-ID: Subject: Re: After cygwin upgrade, Emacs shell buffers with colors are corrupted To: Ken Brown X-Spam-Status: No, score=-5.2 required=5.0 tests=DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_2, HTML_MESSAGE, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, 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-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.29 List-Id: Cygwin mailing list List-Archive: List-Post: List-Help: List-Subscribe: , From: David Karr via Cygwin Reply-To: David Karr Cc: The Cygwin Mailing List Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "Cygwin" Thanks, that worked. For now, I guess I have to figure out how to set that property permanently, or until this pty bug is fixed.. I start Emacs from a shortcut, executing "emacs.xml". I see the file appears to have some syntax for setting the environment, but I've never inspected that file before. On Tue, Mar 17, 2020 at 6:04 PM Ken Brown via Cygwin wrote: > 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 > -- > Problem reports: https://cygwin.com/problems.html > FAQ: https://cygwin.com/faq/ > Documentation: https://cygwin.com/docs.html > Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple > -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple