From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29076 invoked by alias); 1 Feb 2016 10:29:31 -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 29057 invoked by uid 89); 1 Feb 2016 10:29:30 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 spammy=H*MI:sk:56AC2C3, H*MI:sk:xvKUCGw X-HELO: plane.gmane.org Received: from plane.gmane.org (HELO plane.gmane.org) (80.91.229.3) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Mon, 01 Feb 2016 10:29:29 +0000 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1aQBjX-0001Uk-NE for cygwin@cygwin.com; Mon, 01 Feb 2016 11:29:23 +0100 Received: from a83-162-234-136.adsl.xs4all.nl ([83.162.234.136]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 01 Feb 2016 11:29:23 +0100 Received: from houder by a83-162-234-136.adsl.xs4all.nl with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 01 Feb 2016 11:29:23 +0100 To: cygwin@cygwin.com From: Henri Subject: Re: =?utf-8?b?Y3lnd2luX2NvbnZfcGF0aA==?= sometimes removes trailing slash Date: Mon, 01 Feb 2016 10:29:00 -0000 Message-ID: References: <56AC2C35.9060903@cornell.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit User-Agent: Loom/3.14 (http://gmane.org/) X-IsSubscribed: yes X-SW-Source: 2016-02/txt/msg00005.txt.bz2 Jan Nijtmans gmail.com> writes: > > 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 For the record ... - Ken Brown refers to: win32 -> posix - Jan Nijthuis and Ray Donnelly refer to: posix -> win32 Different code paths ... (and yes, conversions in both directions should be correct) Regards, Henri -- 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