delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/01/31/06:39:02

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:date
:message-id:subject:from:to:content-type; q=dns; s=default; b=f3
INtmj2sz2oHsvFc+t/GHr2k9XT65i+UZmJDjyKETSUSSYkEOzTQTSM84mbnXA/FW
Rb05UdzlOkLJmmIkZQvSz/IrTDW89kyEq5RUKuo42FKKe6iOlNahf/wcBOIY/scd
jGKBGFcGU/8hJq/rg/fnzNdS6spPVKgNzJ3vWBaTE=
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:date
:message-id:subject:from:to:content-type; s=default; bh=scImKTtP
K9OgnOBFvIOaTPXFZms=; b=x0Yoiusp0uwjeT1mdY4gR4PmKYpcB52NjbeC17hZ
UEPccsDMn1zYeCtMElSa7oLlc3aFhxZjuMG14jnNeEXT1aCEaUgw+BjmJvFpziZy
1c8L9WjDLL1/LErnrkDLLhNnqMXxHyR7xbjuFxkGBdzlDXZHhLOlEUOkpag1fwpQ
QbE=
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=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=H*f:sk:56AC2C3, H*i:sk:56AC2C3
X-HELO: mail-io0-f169.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:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=fiZQnSRJOB56L3XDEGcCbp7tBxoYJZkVe8A2GyFJiFk=; b=Px28bjnjmVrWKcWTXViBvxQq7zhrYdkpprXb9pzkkY1pFsx2S4ivliT+ZPmHjInddU KBBIWwsdhZMkaUiUDEkTIvpldJMOpTgPgUm9JuCfyAKTvj9Er2HJNXFsNJ6egl/Rectn 4FE4UKe8BRcaO0u6gV2cCTT+D+7NWMzqzCBql3wdQnKRENvWtrokym64X/7LGVMP6QkV huGzruiCm6bBcPUlIdgtH/J5MIiZ5qRMKMAAuGPKaSsNlZdv0m8Lqg/u/9waHsjqQLZo P57XgPD9Tu999cQJQpfLGt00jLt5TtnLWlmghaSilGtjCdc6fBuYhJ/munyIPnxOO6fF SP4A==
X-Gm-Message-State: AG10YOQ/Ibw2H4EtNCP1mJ4qxtz2v7ZQCXt+stHNu1XJtDEiQM1juKvehdHWRZsSasvE56Z9mlYqFmGGt5/7kw==
MIME-Version: 1.0
X-Received: by 10.107.11.162 with SMTP id 34mr17412392iol.165.1454240323253; Sun, 31 Jan 2016 03:38:43 -0800 (PST)
In-Reply-To: <56AC2C35.9060903@cornell.edu>
References: <56AC2C35 DOT 9060903 AT cornell DOT edu>
Date: Sun, 31 Jan 2016 12:38:43 +0100
Message-ID: <CAO1jNwv+Lza40TnN+woA_R1HpsnEZZvYda2f8A49NE+xvKUCGw@mail.gmail.com>
Subject: Re: cygwin_conv_path sometimes removes trailing slash
From: Jan Nijtmans <jan DOT nijtmans AT gmail DOT com>
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes

2016-01-30 4:21 GMT+01:00 Ken Brown:
> I'm using cygwin_conv_path to convert Win32 paths to POSIX paths, and I'm
> puzzled by the conversion
>
>   d:/ --> /cygdrive/d
>
> without the trailing slash.  By contrast, we have
>
>   d:/foo/ --> /cygdrive/d/foo/

This came up before:
   <https://cygwin.com/ml/cygwin/2015-10/msg00048.html>
I had to workaround it in tkimg.

It's easy to workaround in your program, but - indeed -
that shouldn't be necessary. I too would expect that
when the input contains a slash, the output should too.

Regards,
     Jan Nijtmans

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