This is the mail archive of the
mailing list for the Cygwin project.
Re: cygwin_conv_path sometimes removes trailing slash
- From: Ray Donnelly <mingw dot android at gmail dot com>
- To: cygwin at cygwin dot com
- Date: Mon, 1 Feb 2016 10:45:14 +0000
- Subject: Re: cygwin_conv_path sometimes removes trailing slash
- Authentication-results: sourceware.org; auth=none
- References: <56AC2C35 dot 9060903 at cornell dot edu> <CAO1jNwv+Lza40TnN+woA_R1HpsnEZZvYda2f8A49NE+xvKUCGw at mail dot gmail dot com> <loom dot 20160201T112426-750 at post dot gmane dot org>
On Mon, Feb 1, 2016 at 10:29 AM, Henri <firstname.lastname@example.org> wrote:
> Jan Nijtmans <jan.nijtmans <at> 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.
>> 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)
I can't check as I'm at work, but to the best of my knowledge (and yes
I wrote these a long time ago) path_conv::check is used in conversions
both ways so I am talking about both cases here, Jan's with the first
patch and Ken's with the second patch. Please do correct me if I am
wrong though! I will run some detailed tests tonight.
> 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
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple