X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-1.2 required=5.0	tests=AWL,BAYES_00,RCVD_IN_HOSTKARMA_NO,SPF_NEUTRAL,TW_XD,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
Message-ID: <4F75B4D7.8060407@cornell.edu>
Date: Fri, 30 Mar 2012 09:27:51 -0400
From: Ken Brown <kbrown@cornell.edu>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0.1) Gecko/20120208 Thunderbird/10.0.1
MIME-Version: 1.0
To: cygwin <cygwin@cygwin.com>
Subject: cygstart doesn't handle question marks in mailto URLs
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-PMX-CORNELL-SPAM-CHECKED: Pawpaw
X-Original-Sender: kbrown@cornell.edu - Fri Mar 30 09:28:08 2012
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

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?

My reason for asking this is that I'm testing xdg-utils, which is 
currently available in Cygwin Ports but which will probably be added to 
the Cygwin distro at some point.  I would like xdg-open to be able to 
handle mailto URLs correctly if I export BROWSER=cygstart.

Ken

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

