cygwin_conv_path sometimes removes trailing slash

Jan Nijtmans jan.nijtmans@gmail.com
Sun Jan 31 22:25:00 GMT 2016


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



More information about the Cygwin mailing list