delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2018/11/26/20:09:47

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:message-id:date:from:to:references:subject
:content-type; q=dns; s=default; b=IXkT/hG63SNM2XqmNmqMtTZYTvjo4
+3e+TWcbqU4+N6fR4yPcATdsg+I1rMsNtomlDFfwmyenaI9+WF4rAjc05IAmkRdv
dIW0i3mDQksgNdF897cYiu+fGGxL1ruHC4so80f7TvV4LmtazwBV5p/8padPukap
OUWcLlKR+hCy7w=
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:message-id:date:from:to:references:subject
:content-type; s=default; bh=5Gc1DgGFyHl+lZqmJrEIKEGdgys=; b=afr
NW3KSzJ9dH4frBNKxdCZcPcaUTDzyABnOQL0uW1wxQ59SezCK3/zGEsLyMrfp0Zf
nLDWyOUGFFhnKArZGz37a1jdXDMW/GtGwEBBw5co7S7rLOb4BKAaZQ81gy8xlumN
3O0OZABX17dADRx+fKBgbEHm3j0Ss2rtYJBBcZDY=
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-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=Dec, H*M:1c69fb81, H*M:google
X-HELO: mail-oi1-f170.google.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:date:from:to:references:subject:user-agent; bh=mLtBPHofwsCKazPSOsTa7dgPXwKWTdzZpmzxfcTXGxU=; b=fkD0rlB7GS5/C2IhOlZkHBWruDmVRSzz6oAjBpolnVMro6D2VLrwajwtcBPD3rFwGq 8MwILJIhZprpF4iWk51+PdyhBC8JgLNRqQfLrefNx9DOJtxugmfwRnCrvIzq4eQjsmrp ibvT4BncKsa9R/En77A3yU+19XtcH1A58eEajMfW1WkgmRUIAEBMHSI9vr7/xGszTfEf jIFIVzjdxqeSVEVyAvBNanwRzThZ/oVBeFdL5Fj7sO+/Kj39MwvVpkXXOXsjtUkBFOz+ z3LkUw3Uxbl6WHri6BTkjxHkdYc9KtETUjNZKjgPaxUEOhkGmed+m0LQ4cvWWCwaEF/K wglA==
Message-ID: <5bfc994b.1c69fb81.2bacb.e7da@mx.google.com>
Date: Mon, 26 Nov 2018 17:09:31 -0800 (PST)
From: Steven Penny <svnpenn AT gmail DOT com>
To: cygwin AT cygwin DOT com
References: <CA+kUOamKzp=jjKc1OLGo1vmepoee5ABwgUpYJF9Lq1CJjOBy9Q AT mail DOT gmail DOT com>
Subject: Re: Cygwin Git with Windows paths
User-Agent: Tryst/2.8.0 (cup.github.io/umber/awk/tryst)

On Mon, 26 Nov 2018 22:54:14, Adam Dinwoodie wrote:
> Personally, I don't see this as a bug; AIUI using Windows style paths
> isn't something that is supported in general in Cygwin, even if it's
> something that works in some circumstances.

It is a bug. Even when you use Unix paths, Cygwin is doing path conversions:

    $ ls /var
    cache  lib  log  run  tmp

    $ strace ls /var | grep -E '(conv_to|normalize)_(posix|win32)_path' | wc
    32     320    3337

So either this code should be pulled out of the Cygwin DLL, or people should
stop saying that its not supported.

> I see you've raised this on the Git mailing list as well, and if the
> upstream Git package starts to handle such paths, I'll take the
> relevant patches. However since I don't consider this a bug, I'm not
> going to raise it myself.

Its not fixed upstream (yet), but a patch is available that fixes the issue:

http://public-inbox.org/git/20181126173252 DOT 1558-1-tboegi AT web DOT de

Note carefully that Windows path handling previously worked with Cygwin Git
until Dec 2016, when a patch was introduced that broke that use case. The patch
in question repairs the path handling so that Unix and Windows paths are both
supported with Cygwin Git again.


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