delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2020/08/26/08:17:03

X-Recipient: archive-cygwin AT delorie DOT com
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
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 AT cs DOT umass DOT edu
Subject: Re: [cygwin] Issue on output when using javac or scalac under emacs
To: cygwin AT cygwin DOT com
References: <254353029 DOT 2017595 DOT 1598395227754 DOT JavaMail DOT open-xchange AT opme11oxm24aub DOT bagnolet DOT francetelecom DOT fr>
<069901d67b36$35b4f370$a11eda50$@pdinc.us>
<f39b995e-c6e5-6676-68e9-6b15520027a6 AT orange DOT fr>
From: Eliot Moss <moss AT cs DOT umass DOT edu>
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: <f39b995e-c6e5-6676-68e9-6b15520027a6@orange.fr>
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 AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
Reply-To: moss AT cs DOT umass DOT edu
Errors-To: cygwin-bounces AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces AT cygwin DOT com>
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 07QCGiWZ016211

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
--
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019