public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* cygstart, mailto: URLs, and launching an executable
       [not found] <BANLkTimf=TW2b=XJf2AUAWZ-_BLOJi+r+w@mail.gmail.com>
@ 2011-04-19 22:44 ` Wm. David Bentlage
  2011-04-20  1:11   ` Charles Wilson
  0 siblings, 1 reply; 2+ messages in thread
From: Wm. David Bentlage @ 2011-04-19 22:44 UTC (permalink / raw)
  To: cygwin

Hi,

What's the reason for the following change in cygstart between cygwin
1.5 and 1.7?  Can the cygwin 1.5 behavior be restored?


ai016aadm01@app-stl-33 ~
$ uname -a
CYGWIN_NT-5.2 app-stl-33 1.5.24(0.156/4/2) 2007-01-31 10:57 i686 Cygwin

ai016aadm01@app-stl-33 ~
$ cygstart -v mailto:
ShellExecute(NULL, "(null)", "mailto:", "(null)", "(null)", 1)

ai016aadm01@app-stl-33 ~
$ cygstart -v bash
ShellExecute(NULL, "(null)", "bash", "(null)", "(null)", 1)



ai016aadm01@app-stl-33 ~
$ uname -a
CYGWIN_NT-5.2 app-stl-33 1.7.9(0.237/5/3) 2011-03-29 10:10 i686 Cygwin

ai016aadm01@app-stl-33 ~
$ cygstart -v mailto:
ShellExecute(NULL, "(null)", "W:\home\m278638\mailto", "(null)", "(null)", 1)
Unable to start 'W:\home\m278638\mailto': The specified file was not found.

ai016aadm01@app-stl-33 ~
$ cygstart -v bash
ShellExecute(NULL, "(null)", "W:\home\m278638\bash", "(null)", "(null)", 1)
Unable to start 'W:\home\m278638\bash': The specified file was not found.


Under cygwin 1.5, I could open a new email in the default application
using "cygstart mailto:".  Under cygwin 1.7, I get an error.
Performing "cygstart mailto://" will get cygwin 1.7 cygstart to
recognize mailto: as a URL instead of a file, but that's not proper
mailto: URL syntax.

Under cygwin 1.5, a new bash window is launched (per the man page).
Under cygwin 1.7, I get an error.  I can open bash in cygwin 1.7 if I
specify the full path to the bash executable.

Thanks,
Dave B.

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: cygstart, mailto: URLs, and launching an executable
  2011-04-19 22:44 ` cygstart, mailto: URLs, and launching an executable Wm. David Bentlage
@ 2011-04-20  1:11   ` Charles Wilson
  0 siblings, 0 replies; 2+ messages in thread
From: Charles Wilson @ 2011-04-20  1:11 UTC (permalink / raw)
  To: cygwin

On 4/19/2011 4:58 PM, Wm. David Bentlage wrote:
> Under cygwin 1.5, a new bash window is launched (per the man page).
> Under cygwin 1.7, I get an error.  I can open bash in cygwin 1.7 if I
> specify the full path to the bash executable.

cygwin-1.4.0:

* Support in cygstart for unicode arguments/filenames
  (from IWAMURO Motonori).

IIRC, part of this change affected how "bare" names (e.g. without paths)
were handled, to facilitate proper unicode support.

This may be relevant:
http://cygwin.com/ml/cygwin/2010-01/msg01101.html
but I never got a patch.

I suspect this will need debugging for the 'bash' case, and an explicit
workaround for 'mailto:'.

PTC...

--
Chuck

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-04-19 22:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <BANLkTimf=TW2b=XJf2AUAWZ-_BLOJi+r+w@mail.gmail.com>
2011-04-19 22:44 ` cygstart, mailto: URLs, and launching an executable Wm. David Bentlage
2011-04-20  1:11   ` Charles Wilson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).