X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:reply-to :references:mime-version:content-type:in-reply-to; q=dns; s= default; b=IAflB3SGMyyl24223c7NQFjR/9pfKvOgqQiJOsxU6VTpONXPFiXm+ 5y+/3sUYi85qeb/s8YxLFN+Xowmmn+hGcA/TUcgL9Yrd+r5QcsydKpXj/oplXjxH Pf0+smhdukzzcGKRIRVnt3HCqh46QsR1kReEQZRfymrXx3vod0cYos= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:reply-to :references:mime-version:content-type:in-reply-to; s=default; bh=+nYGjWp50yIBKwGJQ/JRrjmjliA=; b=QsVRtKhPW6b8SH1kGeb9GpG1zd5Y DNqfj9trzoTzIvl6ZcXdOjjV7xCwLuyicFRz33ng4Yr6xXyM9lrPVqee8KRxwbJ1 TCfCSt7PgTr8C0OPJlMyp2RWJ+gdOkZRmac2jbiDzNgcnoDrvbkfv2sWUEiwBgFD RmG3SjDkHI7JtzQ= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com X-Spam-SWARE-Status: No, score=-1.4 required=5.0 tests=AWL,BAYES_00,RDNS_NONE autolearn=no version=3.3.1 Date: Wed, 17 Jul 2013 16:33:40 +0200 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: Issue with run.exe and PWD with spaces since last update (Cygwin 1.7.21) Message-ID: <20130717143340.GF32258@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <295777180 DOT 20130716202913 AT mtu-net DOT ru> <20130717125916 DOT GB21347 AT calimero DOT vinschen DOT de> <51E69DE2 DOT 10008 AT cwilson DOT fastmail DOT fm> <20130717134532 DOT GC32258 AT calimero DOT vinschen DOT de> <51E6A3DB DOT 7050605 AT cwilson DOT fastmail DOT fm> <20130717141042 DOT GE32258 AT calimero DOT vinschen DOT de> <51E6A836 DOT 80800 AT cwilson DOT fastmail DOT fm> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <51E6A836.80800@cwilson.fastmail.fm> User-Agent: Mutt/1.5.21 (2010-09-15) On Jul 17 10:20, Charles Wilson wrote: > On 7/17/2013 10:10 AM, Corinna Vinschen wrote: > >Uhm. In that case, if ew *really* think your tools are the only > >affected ones, Why do we bother to fix libcmain.c? Can't you then > >simply provide your own main() in case of building for Cygwin? > > Perhaps, but I'm not sure of the ramifications. I think if you have > a main() then you're going to get STD_HANDLES. Plus there's the > whole concern about launching run[2].exe itself without a cmdbox, > when it is used as a shortcut target. In that case, the application gets the command line via GetCommandLine, which in turn is converted to argc,argv by the Cygwin DLL ebfore calling main. > This whole entrypoint thing is tied up in that, or at least it used > to be. Now, that may ONLY apply to the mingw[64]-compiled version, > in which case I could do a > > #ifdef __CYGWIN__ > int main (int argc, char** argv) > { > return realmain(argc, argv); > } > #endif Or #ifdef __CYGWIN__ int main (int argc, char** argv) #else int realmain (int argc, char** argv) #endif > and avoid the -e WinMain AT 16 link argument. (Except I think I arrange > to only do -e WinMain AT 16 on mingw...hmm...) Can you quickly check if that works? If so, we have a bit less pressure to fix libcmain. > If you look closely at WinMain, it basically parses the result from > GetCommandLine() into argc,argv, and then delegates. Yes, I saw that while debugging. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple