From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27340 invoked by alias); 30 Mar 2012 16:05:01 -0000 Received: (qmail 27319 invoked by uid 22791); 30 Mar 2012 16:04:59 -0000 X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,RCVD_IN_HOSTKARMA_NO,SPF_NEUTRAL X-Spam-Check-By: sourceware.org Received: from smtp4.epfl.ch (HELO smtp4.epfl.ch) (128.178.224.218) by sourceware.org (qpsmtpd/0.43rc1) with SMTP; Fri, 30 Mar 2012 16:04:36 +0000 Received: (qmail 19266 invoked by uid 107); 30 Mar 2012 16:04:32 -0000 Received: from sb-gw13.cs.toronto.edu (HELO [10.70.2.228]) (128.100.3.13) (authenticated) by smtp4.epfl.ch (AngelmatoPhylax SMTP proxy) with ESMTPA; Fri, 30 Mar 2012 18:04:33 +0200 Message-ID: <4F75D990.9030706@cs.utoronto.ca> Date: Fri, 30 Mar 2012 16:05:00 -0000 From: Ryan Johnson User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:11.0) Gecko/20120327 Thunderbird/11.0.1 MIME-Version: 1.0 To: cygwin@cygwin.com Subject: Re: cygstart doesn't handle question marks in mailto URLs References: <4F75B4D7.8060407@cornell.edu> <4F75B89A.8050301@cs.utoronto.ca> <20120330151432.GR30721@calimero.vinschen.de> In-Reply-To: <20120330151432.GR30721@calimero.vinschen.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com X-SW-Source: 2012-03/txt/msg00819.txt.bz2 On 30/03/2012 11:14 AM, Corinna Vinschen wrote: > On Mar 30 09:43, Ryan Johnson wrote: >> On 30/03/2012 9:27 AM, Ken Brown wrote: >>> If I type `cygstart mailto:recipient?subject=subject' at a Cygwin >>> bash prompt, I expect my default Windows mail program to start an >>> outgoing message with `recipient' as recipient and `subject' as >>> subject. (This is what happens if I type the same URL into a >>> `Start Menu -> Run' box.) What happens instead is that >>> `recipient?subject=subject' shows up as the recipient, with the >>> question mark replaced by something unprintable, and the subject >>> is blank. >>> >>> Is this a bug in cygstart, or am I misunderstanding something? >> I suspect a bug in the way cygwin1.dll handles conversion from unix- >> to windows-style paths. > http://cygwin.com/acronyms/#IAFNAB > > http://cygwin.com/cygwin-ug-net/using-specialnames.html#pathnames-specialchars Makes sense... for files, but we're dealing with a URL here, so it *is* a bug IMO (but you're right, not a bug in cygwin's handling of windows-style paths). Cygstart knows it's dealing with a URL. It doesn't try to look for a file whose name starts with "mailto:", for example, nor does it escape the otherwise-forbidden ':' character. The proper behavior would either enforce the forbidden character set and escaping methods that apply to URLs, or else pass the argument through unmodified and let Windows (or the target app) complain if there's a problem. Either way, though, "file:" urls would have to be a special case. And yes, SHTDI, and TSINM (that somebody is not me). Ryan -- 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