Web lists-archives.com

Re: [Mingw-msys] Strange path transformation with Emacs




> Perhaps a fine-tuning of the path detection algorithm could help in this
> case.

I'm not able to test this but maybe something like the following would
suffice.

Brian
--- rt/src/winsup/cygwin/path.cc.orig	2006-07-26 08:01:37.000000000 -0700
+++ rt/src/winsup/cygwin/path.cc	2008-09-17 10:08:41.921875000 -0700
@@ -3252,7 +3252,7 @@
 	      sspath = (char *)spath;
 	      sspath++;
 	      sspath++;
-	      if (*sspath == '/')
+	      if (*sspath == '/' && sspath[-1] != '/')
 		{
 		  debug_printf("spath = %s", spath);
 		  char *swin32_path = msys_p2w (sspath);
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Mingw-msys mailing list
Mingw-msys@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/mingw-msys