delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/09/13/13:45:42

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:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=lZEbLchxOTEQQQf2
nmNhduXmCJ5g01azhVmLWWz/DG/ISLvlmn5BGz3Q1T8Xnrudrf2J+gqkyCTa/Fm2
a0WT2KUriKBChirOCrgyRzw6PTMQy7dVNb4Fq7ucvXDtSqkz++niQ08zw+B+Pgn4
U7DZlDa9Ja8mR/l2E+xqT9I/FOI=
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:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=JAmqOyBsPg09BeoQ3iW+sK
V1NHQ=; b=KEapr4oRG/IIB2KXk2ffIgTx6CIMpImDZod6CBjxtX7/E/4fHptx9f
MCH33CLLz65NhslQwfrOTZQ7TmZC5fW8zBeqf5Ao6fgwlzXZnDHlKcY+bM+27+L7
luFJG0EjYzUyWHB0DmWBngvuQE15ES6uPs4g1F2ymBQvbRalbGzHE=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-4.0 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 spammy=funny, H*Ad:D*cornell.edu, H*f:9Sotx97Vvs, H*i:9Sotx97Vvs
X-HELO: limerock02.mail.cornell.edu
X-CornellRouted: This message has been Routed already.
Subject: Re: Change in 'cygstart' functionality?
To: cygwin AT cygwin DOT com
References: <CA+2x6-LBn+9Sotx97Vvs+bxAj4NcV8eqkwyVKwGCtmdgSwYj3A AT mail DOT gmail DOT com>
From: Ken Brown <kbrown AT cornell DOT edu>
Message-ID: <a6817bbe-4f5f-a410-3aa6-272e9acc7df3@cornell.edu>
Date: Tue, 13 Sep 2016 13:44:55 -0400
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0
MIME-Version: 1.0
In-Reply-To: <CA+2x6-LBn+9Sotx97Vvs+bxAj4NcV8eqkwyVKwGCtmdgSwYj3A@mail.gmail.com>
X-PMX-Cornell-Gauge: Gauge=X
X-PMX-CORNELL-AUTH-RESULTS: dkim-out=none;
X-IsSubscribed: yes

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 AT domain DOT com"
>
> But I noticed recently that this now fails with:
>
>     Unable to start 'sipuser AT domain DOT 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 AT domain DOT com"
>
> Error:
>     Unable to start 'sip\user AT domain DOT 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 AT 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 AT domain DOT 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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019