delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/09/13/14:40:29

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:mime-version:in-reply-to:references:from:date
:message-id:subject:to:content-type:content-transfer-encoding;
q=dns; s=default; b=WRP2lqzvrKosO/49OUIr6CuBm2mlmkBv7VKOzjBNj7N
Q60hwaM4B3WHbdNAKuChnW6/K1apSIM/MkfFPiBX36zj/3ZkQvtVfisVCDfrJJET
83jF5TAxQlpmoB7Y4BFxE9c1Df5arYHGo/RcXXf+McLOgb1KIVaNElUNCtTEOHZY
=
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:mime-version:in-reply-to:references:from:date
:message-id:subject:to:content-type:content-transfer-encoding;
s=default; bh=QKutBiSiQjHOkC4hN/RZQA4LoQY=; b=i4swsbOsaEtLiNwyn
Ycaxd3aN/M01uJxc1mJb7MTckiQr1404I2dtS7VGa6t1v4kXCRJLVFmeK30v3Nlv
Zs7Tr2gTX+bEwbhNzfhAFLirH2YNzi+gwf0aJNcxnkRivdoP6q/6ubbl5RZ0/D7S
qIQNFx81jUOUo7Xm5y88XsowPI=
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=0.0 required=5.0 tests=AWL,BAYES_40,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=ham version=3.3.2 spammy=breakdown, nov, Nov, U*kbrown
X-HELO: mail-qk0-f170.google.com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:content-transfer-encoding; bh=Ieb1t1g38hUI3tnhgItkbYLQF0xFewuE6dPZmchVn+8=; b=eFswYgqcMwUTuBT6aULDm2sdAf9pen+KKsCgSFW8aHBsXZbT8N23e22Gi4/VT6kyfk usIFpRmZypwpFwy78PR/IFEAVD2b+i4w42TBR3BCQiCGUSPIwIV2GAyWSN9QPn1ACndZ nmcdCQfXh+M9nVr66B1rnRe2uh4uXa5MNaP1SizKs2ijw+SMJqeQpxbBUw5GmIzuwTaW G2JINI6vP+begg7Q6SwLp3J8fmoQlO5d0e263AOXy5Dr2g21m27lvh3Cz6LoZuZ21IpF oYKuIQ6UPxpjZaHOVAP4NX5+Ka3Wjaq5u5VFJNKADv7HMDBLHn0uZE/Dr0QdAoQcsxal mVDw==
X-Gm-Message-State: AE9vXwNWFpOtBESVm+JeyqGdZltOPMmZBMOSwvcF7hMuPCRg/cI7UYBwu2XHDwMxt6vutwhCrpVF3nQzWn5S3g==
X-Received: by 10.55.24.194 with SMTP id 63mr2945015qky.30.1473791996119; Tue, 13 Sep 2016 11:39:56 -0700 (PDT)
MIME-Version: 1.0
In-Reply-To: <a6817bbe-4f5f-a410-3aa6-272e9acc7df3@cornell.edu>
References: <CA+2x6-LBn+9Sotx97Vvs+bxAj4NcV8eqkwyVKwGCtmdgSwYj3A AT mail DOT gmail DOT com> <a6817bbe-4f5f-a410-3aa6-272e9acc7df3 AT cornell DOT edu>
From: Nem W Schlecht <nem AT emptec DOT com>
Date: Tue, 13 Sep 2016 13:39:55 -0500
Message-ID: <CA+2x6-LnaY5TWyor14N8pcU-JYfFT_BMmW7r-R3xQC-KBz9F9w@mail.gmail.com>
Subject: Re: Change in 'cygstart' functionality?
To: The Cygwin Mailing List <cygwin AT cygwin DOT com>
X-IsSubscribed: yes
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id u8DIePma020804

On Tue, Sep 13, 2016 at 12:44 PM, Ken Brown <kbrown AT cornell DOT 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 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.
>>
>>
[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 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

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


- Raw text -


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