delorie.com/archives/browse.cgi | search |
With the small problem that we're still working on src and not dst, and we cannot do the replacement on src because it is const. But I think you got the idea. Sorry > This is not done for "normal" DOS paths, IMHO consistency > would require that all remaining "\" are converted to "/" for all > paths. Isn't this what normalize_posix_path is meant to do? > > I.e. put: > > --- snip --- > for (char *p = dst; (p = strchr (p, '\\')); p++) > *p = '/'; > --- snap --- > > in line 212 in path.cc before the remaing cases are evaluated. Volker -- If you like my work consider: http://www.scytek.de/donations.html PGP/GPG key (ID: 0x9F8A785D) available from wwwkeys.de.pgp.net key-fingerprint 550D F17E B082 A3E9 F913 9E53 3D35 C9BA 9F8A 785D -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |