www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/12/16/08:27:33

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Mon, 15 Dec 2008 18:52:42 -0500
From: Christopher Faylor <cgf-use-the-mailinglist-please AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: [1.7] Problem - emacs fails to get shell-command output
Message-ID: <20081215235242.GA24120@ednor.casa.cgf.cx>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <announce DOT 20081210203400 DOT GA15192 AT calimero DOT vinschen DOT de> <4941587D DOT 5070109 AT cornell DOT edu> <17393e3e0812111130n3dda8d05n8465481c68b97596 AT mail DOT gmail DOT com> <49457F56 DOT 1040508 AT cornell DOT edu> <20081215135249 DOT GV32197 AT calimero DOT vinschen DOT de> <49467903 DOT 2090104 AT cornell DOT edu> <4946B370 DOT 8040206 AT cornell DOT edu>
MIME-Version: 1.0
In-Reply-To: <4946B370.8040206@cornell.edu>
User-Agent: Mutt/1.5.16 (2007-06-09)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On Mon, Dec 15, 2008 at 02:43:44PM -0500, Ken Brown wrote:
> On 12/15/2008 10:34 AM, Ken Brown wrote:
>> On 12/15/2008 8:52 AM, Corinna Vinschen wrote:
>>> On Dec 14 16:49, Ken Brown wrote:
>>>> On 12/11/2008 2:30 PM, Matt Wozniski wrote:
>>>>> On Thu, Dec 11, 2008 at 1:14 PM, Ken Brown wrote:
>>>>>> One other thing I've noticed, which I think is unrelated, is that 
>>>>>> there is a
>>>>>> glitch in directory listing in emacs under cygwin 1.7:  If you try to 
>>>>>> list a
>>>>>> directory with control-x d, very often the directory listing makes it 
>>>>>> look
>>>>>> like the directory is empty when it isn't.  Typing "g" (to ask emacs 
>>>>>> to
>>>>>> redisplay the directory) usually results in a correct listing.
>>>>>> [...]
>>>>> With no knowledge of cygwin's internals, I'd much sooner guess the
>>>>> changes to the pipe code...
>>>> I should have just reported the symptom instead of trying to guess the 
>>>> cause:  Emacs runs the shell command "ls -al" and thinks there's no 
>>>> output.  Here's a second example.  I used emacs's "ediff" function to 
>>>> compare two buffers, and it reported (incorrectly) that there were no 
>>>> differences.  So it seems that emacs called on the shell to run "diff" 
>>>> but didn't get the output.
>>>
>>> Any chance to create a testcase which reproduces this behaviour without
>>> involving emacs?  Emacs is hell of a testcase which I won't even touch
>>> with gloves...
>> Unfortunately, I have virtually no programming experience.  I was hoping 
>> the emacs maintainer might be able to help.
>
> Here's one more piece of information, in case it means something to the 
> experts.  I had been building emacs with the following patch, which was 
> given to me by the person who told me how to build emacs for cygwin:
>
> --- strftime.c.orig     2007-01-14 04:24:37.000000000 +0100
> +++ strftime.c  2008-02-04 21:40:01.031250000 +0100
> @@ -54,7 +54,7 @@
>  # endif
>  #endif
>  #if HAVE_TZNAME
> -#ifndef USE_CRT_DLL
> +#if !defined (USE_CRT_DLL) && !defined (CYGWIN)
>  extern char *tzname[];
>  #endif
>  #endif
>
> I just rebuilt emacs under cygwin 1.7 without that patch.  The glitch 
> involving directory listings still occurs occasionally, but *much* less 
> often.  It happens so much less often that I was about to send a message 
> saying the problem was solved, but then it happened again.
>
> Two questions:
>
> 1.  For the sake of my education, can someone explain to me what this patch 
> is all about and whether it ought to be necessary for cygwin? (I'm 
> compiling with gcc-4, if that makes a difference.)

Sorry but the patch makes no sense on at least two levels.

1) USE_CRT_DLL should not be set when CYGWIN is defined.

2) declaring tzname should not affect anything timing related.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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