public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Change in 'cygstart' functionality?
@ 2016-09-13 16:31 Nem W Schlecht
  2016-09-13 17:53 ` Ken Brown
  0 siblings, 1 reply; 4+ messages in thread
From: Nem W Schlecht @ 2016-09-13 16:31 UTC (permalink / raw)
  To: The Cygwin Mailing List

Hello all,

So, I used to be able to do this in Cygwin to open a chat session (in
my case, With Skype for Business aka S4B):

    cygstart "sip:user@domain.com"

But I noticed recently that this now fails with:

    Unable to start 'sipuser@domain.com': The specified file was not found.

I have no idea why the colon ":" is getting converted into an a UTF
F038 character.  I'm also unsure of when this stopped working, since I
don't use it all that often.


I thought maybe having some slashes would be required, so I tried:

    cygstart "sip:/user@domain.com"

Error:
    Unable to start 'sip\user@domain.com': The specified file was not found.

And yes, I did cut-paste that and *yes* the direction of the slash *changed*.


With 2 slashes, a get an error in S4B that the address doesn't
exist/is incorrect.

With 3 slashes, a new chat window opens!  But its with user
"///user@domain" (ie - non-existant user).


Is the way the SIP protocol needs to be called broken or did something
change in Cygwin to require slashes as a part of cygstart?

Any suggestions on this?


Thanks everybody!

-- 
Nem W Schlecht
"Perl did the magic. I just waved the wand."

--
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] 4+ messages in thread

* Re: Change in 'cygstart' functionality?
  2016-09-13 16:31 Change in 'cygstart' functionality? Nem W Schlecht
@ 2016-09-13 17:53 ` Ken Brown
  2016-09-13 19:05   ` Nem W Schlecht
  0 siblings, 1 reply; 4+ messages in thread
From: Ken Brown @ 2016-09-13 17:53 UTC (permalink / raw)
  To: cygwin

On 9/13/2016 10:50 AM, Nem W Schlecht wrote:
> Hello all,
>
> So, I used to be able to do this in Cygwin to open a chat session (in
> my case, With Skype for Business aka S4B):
>
>     cygstart "sip:user@domain.com"
>
> But I noticed recently that this now fails with:
>
>     Unable to start 'sipuser@domain.com': The specified file was not found.
>
> I have no idea why the colon ":" is getting converted into an a UTF
> F038 character.  I'm also unsure of when this stopped working, since I
> don't use it all that often.
>
>
> I thought maybe having some slashes would be required, so I tried:
>
>     cygstart "sip:/user@domain.com"
>
> Error:
>     Unable to start 'sip\user@domain.com': The specified file was not found.
>
> And yes, I did cut-paste that and *yes* the direction of the slash *changed*.
>
>
> With 2 slashes, a get an error in S4B that the address doesn't
> exist/is incorrect.
>
> With 3 slashes, a new chat window opens!  But its with user
> "///user@domain" (ie - non-existant user).
>
>
> Is the way the SIP protocol needs to be called broken or did something
> change in Cygwin to require slashes as a part of cygstart?

There's no code in cygstart to recognize the SIP protocol.  (It wouldn't 
be hard to add such code, as was done a few years ago for "mailto:". 
See line 598 of cygstart.c in the sources for the cygutils package.)

So cygstart treats "sip:user@domain.com" as a file name.  The funny 
Unicode character you see comes from Cygwin's translation to allow ":" 
as part of a file name.  See

 
https://cygwin.com/cygwin-ug-net/using-specialnames.html#pathnames-specialchars

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

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

* Re: Change in 'cygstart' functionality?
  2016-09-13 17:53 ` Ken Brown
@ 2016-09-13 19:05   ` Nem W Schlecht
  2016-09-13 19:52     ` Andrey Repin
  0 siblings, 1 reply; 4+ messages in thread
From: Nem W Schlecht @ 2016-09-13 19:05 UTC (permalink / raw)
  To: The Cygwin Mailing List

On Tue, Sep 13, 2016 at 12:44 PM, Ken Brown <kbrown@cornell.edu> wrote:
> On 9/13/2016 10:50 AM, Nem W Schlecht wrote:
>>
>> Hello all,
>>
>> So, I used to be able to do this in Cygwin to open a chat session (in
>> my case, With Skype for Business aka S4B):
>>
>>     cygstart "sip:user@domain.com"
>>
>> But I noticed recently that this now fails with:
>>
>>     Unable to start 'sipuser@domain.com': The specified file was not
>> found.
>>
>> I have no idea why the colon ":" is getting converted into an a UTF
>> F038 character.  I'm also unsure of when this stopped working, since I
>> don't use it all that often.
>>
>>
[deletia]
>
>
> There's no code in cygstart to recognize the SIP protocol.  (It wouldn't be
> hard to add such code, as was done a few years ago for "mailto:". See line
> 598 of cygstart.c in the sources for the cygutils package.)
>
> So cygstart treats "sip:user@domain.com" as a file name.  The funny Unicode
> character you see comes from Cygwin's translation to allow ":" as part of a
> file name.  See
>
>
> https://cygwin.com/cygwin-ug-net/using-specialnames.html#pathnames-specialchars

Thanks for the excellent breakdown, Ken.  Makes sense with the colon
":".  Still not sure why it did work a couple months ago and now
doesn't.  I was under the assumption that 'cygstart' was a very basic
program that just passed whatever it was passed on to Windows to
handle - similar to "Start-Process" in Powershell, or well, just like
double-clicking on something on the Desktop.

My 'cygstart's last mod time is Nov 24, 2015 and this was definitely
working *after* that time, so something else changed.  It's like
'cygstart' is assuming this is a file and trying to do something smart
that way rather than just letting Windows handle it (as it would
*need* to do if this were indeed a Cygwin path).  Again, when I add in
the extra slashes, S4B *does* get the SIP request.  Without the
slashes, something in Cygwin is assuming this is a filesystem call.

I'll take a look at the 'cygstart' code and see if (with my lowly
programming skills) I can suggest a patch.  :)


-- 
Nem W Schlecht
"Perl did the magic. I just waved the wand."

--
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] 4+ messages in thread

* Re: Change in 'cygstart' functionality?
  2016-09-13 19:05   ` Nem W Schlecht
@ 2016-09-13 19:52     ` Andrey Repin
  0 siblings, 0 replies; 4+ messages in thread
From: Andrey Repin @ 2016-09-13 19:52 UTC (permalink / raw)
  To: Nem W Schlecht, cygwin

Greetings, Nem W Schlecht!

> Thanks for the excellent breakdown, Ken.  Makes sense with the colon
> ":".  Still not sure why it did work a couple months ago and now
> doesn't.  I was under the assumption that 'cygstart' was a very basic
> program that just passed whatever it was passed on to Windows to
> handle - similar to "Start-Process" in Powershell, or well, just like
> double-clicking on something on the Desktop.

> My 'cygstart's last mod time is Nov 24, 2015 and this was definitely
> working *after* that time, so something else changed.  It's like
> 'cygstart' is assuming this is a file and trying to do something smart
> that way rather than just letting Windows handle it (as it would
> *need* to do if this were indeed a Cygwin path).  Again, when I add in
> the extra slashes, S4B *does* get the SIP request.  Without the
> slashes, something in Cygwin is assuming this is a filesystem call.

> I'll take a look at the 'cygstart' code and see if (with my lowly
> programming skills) I can suggest a patch.  :)

In the meantime, you could use a workaround.

"$SYSTEMROOT/System32/cmd.exe" /C START "" /NOWAIT "sip:..."


-- 
With best regards,
Andrey Repin
Tuesday, September 13, 2016 22:01:17

Sorry for my terrible english...


--
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] 4+ messages in thread

end of thread, other threads:[~2016-09-13 19:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-13 16:31 Change in 'cygstart' functionality? Nem W Schlecht
2016-09-13 17:53 ` Ken Brown
2016-09-13 19:05   ` Nem W Schlecht
2016-09-13 19:52     ` Andrey Repin

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