From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14286 invoked by alias); 31 Jan 2016 11:38:47 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 14277 invoked by uid 89); 31 Jan 2016 11:38:46 -0000 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 Received: from mail-io0-f169.google.com (HELO mail-io0-f169.google.com) (209.85.223.169) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Sun, 31 Jan 2016 11:38:45 +0000 Received: by mail-io0-f169.google.com with SMTP id d63so113233465ioj.2 for ; Sun, 31 Jan 2016 03:38:45 -0800 (PST) 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) Received: by 10.107.145.8 with HTTP; Sun, 31 Jan 2016 03:38:43 -0800 (PST) In-Reply-To: <56AC2C35.9060903@cornell.edu> References: <56AC2C35.9060903@cornell.edu> Date: Sun, 31 Jan 2016 22:25:00 -0000 Message-ID: Subject: Re: cygwin_conv_path sometimes removes trailing slash From: Jan Nijtmans To: cygwin@cygwin.com Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2016-01/txt/msg00493.txt.bz2 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: 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