From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mailsrv.cs.umass.edu (mailsrv.cs.umass.edu [128.119.240.136]) by sourceware.org (Postfix) with ESMTPS id 7B42D3860C37 for ; Wed, 26 Aug 2020 12:16:17 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 7B42D3860C37 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=cs.umass.edu Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=moss@cs.umass.edu Received: from [192.168.0.16] (c-24-62-203-86.hsd1.ma.comcast.net [24.62.203.86]) by mailsrv.cs.umass.edu (Postfix) with ESMTPSA id 3DA36401CE24; Wed, 26 Aug 2020 08:16:17 -0400 (EDT) Reply-To: moss@cs.umass.edu Subject: Re: [cygwin] Issue on output when using javac or scalac under emacs To: cygwin@cygwin.com References: <254353029.2017595.1598395227754.JavaMail.open-xchange@opme11oxm24aub.bagnolet.francetelecom.fr> <069901d67b36$35b4f370$a11eda50$@pdinc.us> From: Eliot Moss Message-ID: <7dfd6884-fc20-5e62-c014-cb6151f7f819@cs.umass.edu> Date: Wed, 26 Aug 2020 08:16:17 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.5 required=5.0 tests=BAYES_00, JMQ_SPF_NEUTRAL, KAM_DMARC_STATUS, NICE_REPLY_A, SPF_HELO_NONE, SPF_PASS, TXREP 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: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Aug 2020 12:16:18 -0000 On 8/26/2020 2:31 AM, Luc Henninger wrote: > Le 26/08/2020 à 01:19, Jason Pyeron a écrit : >>> -----Original Message----- >>> From: Luc Henninger >>> Sent: Tuesday, August 25, 2020 6:40 PM >>> >> I'm thick - what the issue? There was no body to the email. >> >> > Hello, > > ( My previous message dos not contain the text, only the attachments!!! ) > > For years, I use emacs-nt (the one provided by gnu.org) under cygwin. I just discover that emacs is > also directly provided by cygwin (late is better than never :-)). So I try to use it successfully up > to a compilation error in one of my program in java. > > To compile java (or scala), I use my own makefile that I start from emacs. > > In case of error, I encountered a strange output undex emacs_w32 and emacs_nox compared to emacs_nt > (see trace_nox, trace_w32 and trace_nt in attachment). > > I currently use emacs release 27.1 for all emacses, but I verify that I have the same strange > behaviour with emacs 26.3. > > Can anybody explain this? and more gane give a workaround? Here's a thought. Emacs NT would be a native Windows build of Emacs, so is definitely organized to interact properly with Windows subprocesses. The Cygwin versions are designed to interact most easily with Cygwin subprocesses. They can probably be made to work with Windows subprocesses, but as you found, there is at least one rough edge here. My first guess would be something to do with line endings as they are conveyed back to the parent Emacs - the Windows "extra" CRs may confuse a Cygwin Emacs if it is not expecting them. We sometimes see this with bash scripts brought over from Linux to Cygwin. Anyway, this, or other character set related things, is where I would start to diagnose the issue and try different settings. I would ask questions around what the terminal settings are that the subprocesses see, what exact characters are they outputting, etc. Other are more expert than I in these details and may have specific settings to suggest that you look at :-) ... Regards - Eliot Moss