bug in cygwin_conv_to_posix_path() caused by period in win32 path
Pavel Kudrna
Pavel.Kudrna@mff.cuni.cz
Thu Jul 5 22:28:00 GMT 2007
Christopher Faylor wrote:
> I suppose it is possible that we'd consider a nicely written, minimally
> intrusive patch to use these but I'm not 100% certain that it is even
> possible to do this cleanly given the way the environment variable/path
> conversion handling works.
>
Lets look back to original subject. Function cygwin_conv_to_posix_path()
should not leave passed win32 path almost unconverted:
c:.\ -> c:./
c:. -> c:.
That is clearly incorrect.
I found the present meaning of "C:" defined as "C:\" at the beginning
of path.cc file. So both paths should be converted to /cygdrive/c.
But I see it much better to convert it according to the contents "!C:"
environment variable. Even in the present time when these variables are
without changing inherited between cygwin programs.
Pavel Kudrna
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
More information about the Cygwin
mailing list