jed-users mailing list

[2005 Date Index] [2005 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

RE: jed-B0.99-17.135 available


> -----Original Message-----
> From: John E. Davis
> Sent: lunedì 24 ottobre 2005 4.25
> Subject: jed-B0.99-17.135 available
> 
> A new snapshot (0.99-17.135 has been released).  With this release I
> have tried to address several issues discussed on this list, including
> the interpretation of // in pathnames.  I also integrated several
> patches, including Dino's UTF-8 patches for xjed and wjed.  Finally I
> modified the Xjed selection routines --- hopefully the changes will
> improve its interaction with other X apps.  Thanks, --John
> 
[SNIP]
> 120. src/sysdep.c: Rewrote the filename expansion routines to fix the
>      // filename problem reported on the jed-users list.
[SNIP]

Hi John!

Thanks for reviewing and merging a lot of my patches!

The changes to sysdep.c broke the expansion of DOS style paths: the
'skip_drive_specifier' function skips a lot of things that are not drive
specifiers...

This is the fix I use in my (to be released soon) new snapshot of wjed:

-------- cut here
diff -ruN --exclude .svn jed-B0.99-17.135/src/sysdep.c
../build/jed/src/sysdep.c
--- jed-B0.99-17.135/src/sysdep.c	2005-10-24 03:56:54.000000000 +0200
+++ ../build/jed/src/sysdep.c	2005-10-25 09:13:27.786250000 +0200
@@ -614,11 +614,15 @@
 #endif			       /* __QNX__ */
    
 #ifdef IBMPC_SYSTEM
-   if ((file[0] == SLASH_CHAR) && (file[1] == SLASH_CHAR))
-     file += 2;
+   if (file[1] == ':' ||
+       ((file[0] == SLASH_CHAR) && (file[1] == SLASH_CHAR)))
+     {	
+	file += 2;
+   
+	while (*file && (*file != SLASH_CHAR))
+	  file++;
+     }
    
-   while (*file && (*file != SLASH_CHAR))
-     file++;
    return file;
 #endif
-------- cut here

Thanks,
						Dino


[2005 date index] [2005 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]