Karsten Hopp cc2860
To: vim-dev@vim.org
Karsten Hopp cc2860
Subject: patch 7.0.228
Karsten Hopp cc2860
Fcc: outbox
Karsten Hopp cc2860
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp cc2860
Mime-Version: 1.0
Karsten Hopp cc2860
Content-Type: text/plain; charset=ISO-8859-1
Karsten Hopp cc2860
Content-Transfer-Encoding: 8bit
Karsten Hopp cc2860
------------
Karsten Hopp cc2860
Karsten Hopp cc2860
Patch 7.0.228
Karsten Hopp cc2860
Problem:    Cygwin: problem with symlink to DOS style path.
Karsten Hopp cc2860
Solution:   Invoke cygwin_conv_to_posix_path(). (Luca Masini)
Karsten Hopp cc2860
Files:	    src/os_unix.c
Karsten Hopp cc2860
Karsten Hopp cc2860
Karsten Hopp cc2860
*** ../vim-7.0.227/src/os_unix.c	Tue Mar  6 20:27:03 2007
Karsten Hopp cc2860
--- src/os_unix.c	Mon Apr 23 22:27:16 2007
Karsten Hopp cc2860
***************
Karsten Hopp cc2860
*** 55,60 ****
Karsten Hopp cc2860
--- 55,66 ----
Karsten Hopp cc2860
  # endif
Karsten Hopp cc2860
  #endif
Karsten Hopp cc2860
  
Karsten Hopp cc2860
+ #ifdef __CYGWIN__
Karsten Hopp cc2860
+ # ifndef WIN32
Karsten Hopp cc2860
+ #  include <sys/cygwin.h>	/* for cygwin_conv_to_posix_path() */
Karsten Hopp cc2860
+ # endif
Karsten Hopp cc2860
+ #endif
Karsten Hopp cc2860
+ 
Karsten Hopp cc2860
  #if defined(HAVE_SELECT)
Karsten Hopp cc2860
  extern int   select __ARGS((int, fd_set *, fd_set *, fd_set *, struct timeval *));
Karsten Hopp cc2860
  #endif
Karsten Hopp cc2860
***************
Karsten Hopp cc2860
*** 2228,2233 ****
Karsten Hopp cc2860
--- 2258,2270 ----
Karsten Hopp cc2860
  
Karsten Hopp cc2860
  #ifdef VMS
Karsten Hopp cc2860
      fname = vms_fixfilename(fname);
Karsten Hopp cc2860
+ #endif
Karsten Hopp cc2860
+ 
Karsten Hopp cc2860
+ #ifdef __CYGWIN__
Karsten Hopp cc2860
+     /*
Karsten Hopp cc2860
+      * This helps for when "/etc/hosts" is a symlink to "c:/something/hosts".
Karsten Hopp cc2860
+      */
Karsten Hopp cc2860
+     cygwin_conv_to_posix_path(fname, fname);
Karsten Hopp cc2860
  #endif
Karsten Hopp cc2860
  
Karsten Hopp cc2860
      /* expand it if forced or not an absolute path */
Karsten Hopp cc2860
*** ../vim-7.0.227/src/version.c	Thu Apr 26 16:11:47 2007
Karsten Hopp cc2860
--- src/version.c	Thu Apr 26 16:27:29 2007
Karsten Hopp cc2860
***************
Karsten Hopp cc2860
*** 668,669 ****
Karsten Hopp cc2860
--- 668,671 ----
Karsten Hopp cc2860
  {   /* Add new patch number below this line */
Karsten Hopp cc2860
+ /**/
Karsten Hopp cc2860
+     228,
Karsten Hopp cc2860
  /**/
Karsten Hopp cc2860
Karsten Hopp cc2860
-- 
Karsten Hopp cc2860
hundred-and-one symptoms of being an internet addict:
Karsten Hopp cc2860
19. All of your friends have an @ in their names.
Karsten Hopp cc2860
Karsten Hopp cc2860
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp cc2860
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp cc2860
\\\        download, build and distribute -- http://www.A-A-P.org        ///
Karsten Hopp cc2860
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///