073263
To: vim_dev@googlegroups.com
073263
Subject: Patch 7.4.197
073263
Fcc: outbox
073263
From: Bram Moolenaar <Bram@moolenaar.net>
073263
Mime-Version: 1.0
073263
Content-Type: text/plain; charset=UTF-8
073263
Content-Transfer-Encoding: 8bit
073263
------------
073263
073263
Patch 7.4.197
073263
Problem:    Various problems on VMS.
073263
Solution:   Fix several VMS problems. (Zoltan Arpadffy)
073263
Files:	    runtime/doc/os_vms.txt, src/Make_vms.mms, src/fileio.c,
073263
	    src/os_unix.c, src/os_unix.h, src/os_vms.c, src/os_vms_conf.h,
073263
	    src/proto/os_vms.pro, src/testdir/Make_vms.mms,
073263
	    src/testdir/test72.in, src/testdir/test77a.com,
073263
	    src/testdir/test77a.in, src/testdir/test77a.ok src/undo.c
073263
073263
073263
*** ../vim-7.4.196/runtime/doc/os_vms.txt	2013-08-10 13:24:59.000000000 +0200
073263
--- runtime/doc/os_vms.txt	2014-03-12 15:55:50.196741288 +0100
073263
***************
073263
*** 1,4 ****
073263
! *os_vms.txt*    For Vim version 7.4.  Last change: 2011 Aug 14
073263
  
073263
  
073263
  		  VIM REFERENCE MANUAL
073263
--- 1,4 ----
073263
! *os_vms.txt*    For Vim version 7.4.  Last change: 2014 Feb 24
073263
  
073263
  
073263
  		  VIM REFERENCE MANUAL
073263
***************
073263
*** 24,30 ****
073263
  
073263
  1. Getting started					*vms-started*
073263
  
073263
! Vim (Vi IMproved) is a vi-compatible text editor that runs on nearly every
073263
  operating system known to humanity.  Now use Vim on OpenVMS too, in character
073263
  or X/Motif environment.  It is fully featured and absolutely compatible with
073263
  Vim on other operating systems.
073263
--- 24,30 ----
073263
  
073263
  1. Getting started					*vms-started*
073263
  
073263
! Vim (Vi IMproved) is a Vi-compatible text editor that runs on nearly every
073263
  operating system known to humanity.  Now use Vim on OpenVMS too, in character
073263
  or X/Motif environment.  It is fully featured and absolutely compatible with
073263
  Vim on other operating systems.
073263
***************
073263
*** 764,769 ****
073263
--- 764,785 ----
073263
  
073263
  9. VMS related changes					*vms-changes*
073263
  
073263
+ Version 7.4 
073263
+ - Undo: VMS can not handle more than one dot in the filenames use "dir/name" -> "dir/_un_name" 
073263
+   add _un_ at the beginning to keep the extension
073263
+ - correct swap file name wildcard handling
073263
+ - handle iconv usage correctly
073263
+ - do not optimize on vax - otherwise it hangs compiling crypto files
073263
+ - fileio.c fix the comment
073263
+ - correct RealWaitForChar 
073263
+ - after 7.4-119 use different functions lib$cvtf_to_internal_time because Alpha and VAX have
073263
+   G_FLOAT but IA64 uses IEEE float otherwise Vim crashes
073263
+ - guard agains crashes that are caused by mixed filenames
073263
+ - [TESTDIR]make_vms.mms changed to see the output files
073263
+ - Improve tests, update known issues
073263
+ - minor compiler warnings fixed
073263
+ - CTAGS 5.8 +regex included
073263
+ 
073263
  Version 7.3
073263
  - CTAGS 5.8 included
073263
  - VMS compile warnings fixed - floating-point overflow warning corrected on VAX
073263
*** ../vim-7.4.196/src/Make_vms.mms	2013-05-06 04:06:04.000000000 +0200
073263
--- src/Make_vms.mms	2014-03-12 15:55:50.196741288 +0100
073263
***************
073263
*** 2,8 ****
073263
  # Makefile for Vim on OpenVMS
073263
  #
073263
  # Maintainer:   Zoltan Arpadffy <arpadffy@polarhome.com>
073263
! # Last change:  2008 Aug 16
073263
  #
073263
  # This has script been tested on VMS 6.2 to 8.2 on DEC Alpha, VAX and IA64
073263
  # with MMS and MMK
073263
--- 2,8 ----
073263
  # Makefile for Vim on OpenVMS
073263
  #
073263
  # Maintainer:   Zoltan Arpadffy <arpadffy@polarhome.com>
073263
! # Last change:  2014 Feb 24
073263
  #
073263
  # This has script been tested on VMS 6.2 to 8.2 on DEC Alpha, VAX and IA64
073263
  # with MMS and MMK
073263
***************
073263
*** 21,29 ****
073263
  ######################################################################
073263
  # Configuration section.
073263
  ######################################################################
073263
- # VMS version
073263
- # Uncomment if you use VMS version 6.2 or older
073263
- # OLD_VMS = YES
073263
  
073263
  # Compiler selection.
073263
  # Comment out if you use the VAXC compiler
073263
--- 21,26 ----
073263
***************
073263
*** 60,66 ****
073263
  
073263
  # Uncomment if want a debug version. Resulting executable is DVIM.EXE
073263
  # Development purpose only! Normally, it should not be defined. !!!
073263
! # DEBUG = YES
073263
  
073263
  # Languages support for Perl, Python, TCL etc.
073263
  # If you don't need it really, leave them behind the comment.
073263
--- 57,63 ----
073263
  
073263
  # Uncomment if want a debug version. Resulting executable is DVIM.EXE
073263
  # Development purpose only! Normally, it should not be defined. !!!
073263
! # DEBUG = YES 
073263
  
073263
  # Languages support for Perl, Python, TCL etc.
073263
  # If you don't need it really, leave them behind the comment.
073263
***************
073263
*** 87,92 ****
073263
--- 84,92 ----
073263
  # Allow FEATURE_MZSCHEME
073263
  # VIM_MZSCHEME = YES
073263
  
073263
+ # Use ICONV
073263
+ # VIM_ICONV  = YES
073263
+ 
073263
  ######################################################################
073263
  # Directory, library and include files configuration section.
073263
  # Normally you need not to change anything below. !
073263
***************
073263
*** 99,123 ****
073263
  
073263
  .IFDEF MMSVAX
073263
  .IFDEF DECC	     # VAX with DECC
073263
! CC_DEF  = cc # /decc # some system requires this switch but when it is not required /ver might fail
073263
  PREFIX  = /prefix=all
073263
  .ELSE		     # VAX with VAXC
073263
  CC_DEF	= cc
073263
  PREFIX	=
073263
  CCVER	=
073263
  .ENDIF
073263
! .ELSE		     # AXP wixh DECC
073263
  CC_DEF  = cc
073263
  PREFIX  = /prefix=all
073263
  .ENDIF
073263
  
073263
  LD_DEF  = link
073263
  C_INC   = [.proto]
073263
  
073263
- .IFDEF OLD_VMS
073263
- VMS_DEF = ,"OLD_VMS"
073263
- .ENDIF
073263
- 
073263
  .IFDEF DEBUG
073263
  DEBUG_DEF = ,"DEBUG"
073263
  TARGET    = dvim.exe
073263
--- 99,123 ----
073263
  
073263
  .IFDEF MMSVAX
073263
  .IFDEF DECC	     # VAX with DECC
073263
! CC_DEF  = cc # /decc # some versions require /decc switch but when it is not required /ver might fail
073263
  PREFIX  = /prefix=all
073263
+ OPTIMIZE= /noopt     # do not optimize on VAX. The compiler has hard time with crypto functions
073263
  .ELSE		     # VAX with VAXC
073263
  CC_DEF	= cc
073263
  PREFIX	=
073263
+ OPTIMIZE= /noopt
073263
  CCVER	=
073263
  .ENDIF
073263
! .ELSE		     # AXP and IA64 with DECC
073263
  CC_DEF  = cc
073263
  PREFIX  = /prefix=all
073263
+ OPTIMIZE= /opt
073263
  .ENDIF
073263
  
073263
+ 
073263
  LD_DEF  = link
073263
  C_INC   = [.proto]
073263
  
073263
  .IFDEF DEBUG
073263
  DEBUG_DEF = ,"DEBUG"
073263
  TARGET    = dvim.exe
073263
***************
073263
*** 125,131 ****
073263
  LDFLAGS   = /debug
073263
  .ELSE
073263
  TARGET    = vim.exe
073263
! CFLAGS    = /opt$(PREFIX)
073263
  LDFLAGS   =
073263
  .ENDIF
073263
  
073263
--- 125,131 ----
073263
  LDFLAGS   = /debug
073263
  .ELSE
073263
  TARGET    = vim.exe
073263
! CFLAGS    = $(OPTIMIZE)$(PREFIX)
073263
  LDFLAGS   =
073263
  .ENDIF
073263
  
073263
***************
073263
*** 274,279 ****
073263
--- 274,284 ----
073263
  MZSCH_OBJ = if_mzsch.obj
073263
  .ENDIF
073263
  
073263
+ .IFDEF VIM_ICONV
073263
+ # ICONV related setup
073263
+ ICONV_DEF = ,"USE_ICONV"
073263
+ .ENDIF
073263
+ 
073263
  ######################################################################
073263
  # End of configuration section.
073263
  # Please, do not change anything below without programming experience.
073263
***************
073263
*** 287,294 ****
073263
  
073263
  .SUFFIXES : .obj .c
073263
  
073263
! ALL_CFLAGS = /def=($(MODEL_DEF)$(DEFS)$(VMS_DEF)$(DEBUG_DEF)$(PERL_DEF)$(PYTHON_DEF) -
073263
!  $(TCL_DEF)$(SNIFF_DEF)$(RUBY_DEF)$(XIM_DEF)$(HANGULIN_DEF)$(TAG_DEF)$(MZSCH_DEF)) -
073263
   $(CFLAGS)$(GUI_FLAG) -
073263
   /include=($(C_INC)$(GUI_INC_DIR)$(GUI_INC)$(PERL_INC)$(PYTHON_INC)$(TCL_INC))
073263
  
073263
--- 292,299 ----
073263
  
073263
  .SUFFIXES : .obj .c
073263
  
073263
! ALL_CFLAGS = /def=($(MODEL_DEF)$(DEFS)$(DEBUG_DEF)$(PERL_DEF)$(PYTHON_DEF) -
073263
!  $(TCL_DEF)$(SNIFF_DEF)$(RUBY_DEF)$(XIM_DEF)$(HANGULIN_DEF)$(TAG_DEF)$(MZSCH_DEF)$(ICONV_DEF)) -
073263
   $(CFLAGS)$(GUI_FLAG) -
073263
   /include=($(C_INC)$(GUI_INC_DIR)$(GUI_INC)$(PERL_INC)$(PYTHON_INC)$(TCL_INC))
073263
  
073263
***************
073263
*** 296,303 ****
073263
  # It is specially formated for correct display of unix like includes
073263
  # as $(GUI_INC) - replaced with $(GUI_INC_VER)
073263
  # Otherwise should not be any other difference.
073263
! ALL_CFLAGS_VER = /def=($(MODEL_DEF)$(DEFS)$(VMS_DEF)$(DEBUG_DEF)$(PERL_DEF)$(PYTHON_DEF) -
073263
!  $(TCL_DEF)$(SNIFF_DEF)$(RUBY_DEF)$(XIM_DEF)$(HANGULIN_DEF)$(TAG_DEF)$(MZSCH_DEF)) -
073263
   $(CFLAGS)$(GUI_FLAG) -
073263
   /include=($(C_INC)$(GUI_INC_DIR)$(GUI_INC_VER)$(PERL_INC)$(PYTHON_INC)$(TCL_INC))
073263
  
073263
--- 301,308 ----
073263
  # It is specially formated for correct display of unix like includes
073263
  # as $(GUI_INC) - replaced with $(GUI_INC_VER)
073263
  # Otherwise should not be any other difference.
073263
! ALL_CFLAGS_VER = /def=($(MODEL_DEF)$(DEFS)$(DEBUG_DEF)$(PERL_DEF)$(PYTHON_DEF) -
073263
!  $(TCL_DEF)$(SNIFF_DEF)$(RUBY_DEF)$(XIM_DEF)$(HANGULIN_DEF)$(TAG_DEF)$(MZSCH_DEF)$(ICONV_DEF)) -
073263
   $(CFLAGS)$(GUI_FLAG) -
073263
   /include=($(C_INC)$(GUI_INC_DIR)$(GUI_INC_VER)$(PERL_INC)$(PYTHON_INC)$(TCL_INC))
073263
  
073263
*** ../vim-7.4.196/src/fileio.c	2014-02-23 22:58:12.072764176 +0100
073263
--- src/fileio.c	2014-03-12 15:55:50.200741288 +0100
073263
***************
073263
*** 7559,7565 ****
073263
      p = (char_u *)tempnam("tmp:", (char *)itmp);
073263
      if (p != NULL)
073263
      {
073263
! 	/* VMS will use '.LOG' if we don't explicitly specify an extension,
073263
  	 * and VIM will then be unable to find the file later */
073263
  	STRCPY(itmp, p);
073263
  	STRCAT(itmp, ".txt");
073263
--- 7559,7565 ----
073263
      p = (char_u *)tempnam("tmp:", (char *)itmp);
073263
      if (p != NULL)
073263
      {
073263
! 	/* VMS will use '.LIS' if we don't explicitly specify an extension,
073263
  	 * and VIM will then be unable to find the file later */
073263
  	STRCPY(itmp, p);
073263
  	STRCAT(itmp, ".txt");
073263
*** ../vim-7.4.196/src/os_unix.c	2013-12-11 17:12:32.000000000 +0100
073263
--- src/os_unix.c	2014-03-12 16:25:11.144768271 +0100
073263
***************
073263
*** 2965,2971 ****
073263
--- 2965,2990 ----
073263
  
073263
      if (stat((char *)name, &st))
073263
  	return 0;
073263
+ #ifdef VMS
073263
+     /* Like on Unix system file can have executable rights but not necessarily
073263
+      * be an executable, but on Unix is not a default for an ordianry file to
073263
+      * have an executable flag - on VMS it is in most cases.
073263
+      * Therefore, this check does not have any sense - let keep us to the
073263
+      * conventions instead:
073263
+      * *.COM and *.EXE files are the executables - the rest are not. This is
073263
+      * not ideal but better then it was.
073263
+      */
073263
+     int vms_executable = 0;
073263
+     if (S_ISREG(st.st_mode) && mch_access((char *)name, X_OK) == 0)
073263
+     {
073263
+ 	if (strstr(vms_tolower((char*)name),".exe") != NULL
073263
+ 		|| strstr(vms_tolower((char*)name),".com")!= NULL)
073263
+ 	    vms_executable = 1;
073263
+     }
073263
+     return vms_executable;
073263
+ #else
073263
      return S_ISREG(st.st_mode) && mch_access((char *)name, X_OK) == 0;
073263
+ #endif
073263
  }
073263
  
073263
  /*
073263
***************
073263
*** 2983,2989 ****
073263
--- 3002,3010 ----
073263
      /* If it's an absolute or relative path don't need to use $PATH. */
073263
      if (mch_isFullName(name) || (name[0] == '.' && (name[1] == '/'
073263
  				      || (name[1] == '.' && name[2] == '/'))))
073263
+     {
073263
  	return executable_file(name);
073263
+     }
073263
  
073263
      p = (char_u *)getenv("PATH");
073263
      if (p == NULL || *p == NUL)
073263
*** ../vim-7.4.196/src/os_unix.h	2013-12-11 17:12:32.000000000 +0100
073263
--- src/os_unix.h	2014-03-12 15:55:50.204741288 +0100
073263
***************
073263
*** 302,308 ****
073263
  #  define USR_VIMRC_FILE2	"$HOME/vimfiles/vimrc"
073263
  # else
073263
  #  ifdef VMS
073263
! #   define USR_VIMRC_FILE2	"sys$login:vimfiles:vimrc"
073263
  #  else
073263
  #    define USR_VIMRC_FILE2	"~/.vim/vimrc"
073263
  #  endif
073263
--- 302,308 ----
073263
  #  define USR_VIMRC_FILE2	"$HOME/vimfiles/vimrc"
073263
  # else
073263
  #  ifdef VMS
073263
! #   define USR_VIMRC_FILE2	"sys$login:vimfiles/vimrc"
073263
  #  else
073263
  #    define USR_VIMRC_FILE2	"~/.vim/vimrc"
073263
  #  endif
073263
***************
073263
*** 329,335 ****
073263
  #  define USR_GVIMRC_FILE2	"$HOME/vimfiles/gvimrc"
073263
  # else
073263
  #  ifdef VMS
073263
! #   define USR_GVIMRC_FILE2	"sys$login:vimfiles:gvimrc"
073263
  #  else
073263
  #   define USR_GVIMRC_FILE2	"~/.vim/gvimrc"
073263
  #  endif
073263
--- 329,335 ----
073263
  #  define USR_GVIMRC_FILE2	"$HOME/vimfiles/gvimrc"
073263
  # else
073263
  #  ifdef VMS
073263
! #   define USR_GVIMRC_FILE2	"sys$login:vimfiles/gvimrc"
073263
  #  else
073263
  #   define USR_GVIMRC_FILE2	"~/.vim/gvimrc"
073263
  #  endif
073263
*** ../vim-7.4.196/src/os_vms.c	2013-12-11 17:12:32.000000000 +0100
073263
--- src/os_vms.c	2014-03-12 16:26:17.544769288 +0100
073263
***************
073263
*** 296,301 ****
073263
--- 296,313 ----
073263
  }
073263
  
073263
  /*
073263
+  * Convert string to lowercase - most often filename
073263
+  */
073263
+     char *
073263
+ vms_tolower( char *name )
073263
+ {
073263
+     int i,nlen = strlen(name);
073263
+     for (i = 0; i < nlen; i++)
073263
+ 	name[i] = TOLOWER_ASC(name[i]);
073263
+     return name;
073263
+ }
073263
+ 
073263
+ /*
073263
   * Convert VMS system() or lib$spawn() return code to Unix-like exit value.
073263
   */
073263
      int
073263
***************
073263
*** 361,373 ****
073263
  vms_wproc(char *name, int val)
073263
  {
073263
      int i;
073263
-     int nlen;
073263
      static int vms_match_alloced = 0;
073263
  
073263
!     if (val != DECC$K_FILE) /* Directories and foreign non VMS files are not
073263
! 			       counting  */
073263
  	return 1;
073263
  
073263
      if (vms_match_num == 0) {
073263
  	/* first time through, setup some things */
073263
  	if (NULL == vms_fmatch) {
073263
--- 373,384 ----
073263
  vms_wproc(char *name, int val)
073263
  {
073263
      int i;
073263
      static int vms_match_alloced = 0;
073263
  
073263
!     if (val == DECC$K_FOREIGN ) /* foreign non VMS files are not counting */
073263
  	return 1;
073263
  
073263
+     /* accept all DECC$K_FILE and DECC$K_DIRECTORY */
073263
      if (vms_match_num == 0) {
073263
  	/* first time through, setup some things */
073263
  	if (NULL == vms_fmatch) {
073263
***************
073263
*** 383,394 ****
073263
  	}
073263
      }
073263
  
073263
      vms_remove_version(name);
073263
! 
073263
!     /* convert filename to lowercase */
073263
!     nlen = strlen(name);
073263
!     for (i = 0; i < nlen; i++)
073263
! 	name[i] = TOLOWER_ASC(name[i]);
073263
  
073263
      /* if name already exists, don't add it */
073263
      for (i = 0; i
073263
--- 394,402 ----
073263
  	}
073263
      }
073263
  
073263
+     /* make matches look uniform */
073263
      vms_remove_version(name);
073263
!     name=vms_tolower(name);
073263
  
073263
      /* if name already exists, don't add it */
073263
      for (i = 0; i
073263
***************
073263
*** 428,433 ****
073263
--- 436,442 ----
073263
  {
073263
      int		i, cnt = 0;
073263
      char_u	buf[MAXPATHL];
073263
+     char       *result;
073263
      int		dir;
073263
      int files_alloced, files_free;
073263
  
073263
***************
073263
*** 449,456 ****
073263
  	    STRCPY(buf,pat[i]);
073263
  
073263
  	vms_match_num = 0; /* reset collection counter */
073263
! 	cnt = decc$to_vms(decc$translate_vms(vms_fixfilename(buf)), vms_wproc, 1, 0);
073263
! 						      /* allow wild, no dir */
073263
  	if (cnt > 0)
073263
  	    cnt = vms_match_num;
073263
  
073263
--- 458,470 ----
073263
  	    STRCPY(buf,pat[i]);
073263
  
073263
  	vms_match_num = 0; /* reset collection counter */
073263
! 	result = decc$translate_vms(vms_fixfilename(buf));
073263
! 	if ( (int) result == 0 || (int) result == -1  ) {
073263
! 	    cnt = 0;
073263
! 	}
073263
!         else {
073263
! 	    cnt = decc$to_vms(result, vms_wproc, 1 /*allow wild*/ , (flags & EW_DIR ? 0:1 ) /*allow directory*/) ;
073263
! 	}
073263
  	if (cnt > 0)
073263
  	    cnt = vms_match_num;
073263
  
073263
***************
073263
*** 497,506 ****
073263
  mch_expandpath(garray_T *gap, char_u *path, int flags)
073263
  {
073263
      int		i,cnt = 0;
073263
!     vms_match_num = 0;
073263
  
073263
!     cnt = decc$to_vms(decc$translate_vms(vms_fixfilename(path)), vms_wproc, 1, 0);
073263
! 						      /* allow wild, no dir */
073263
      if (cnt > 0)
073263
  	cnt = vms_match_num;
073263
      for (i = 0; i < cnt; i++)
073263
--- 511,528 ----
073263
  mch_expandpath(garray_T *gap, char_u *path, int flags)
073263
  {
073263
      int		i,cnt = 0;
073263
!     char       *result;
073263
  
073263
!     vms_match_num = 0;
073263
!     /* the result from the decc$translate_vms needs to be handled */
073263
!     /* otherwise it might create ACCVIO error in decc$to_vms      */
073263
!     result = decc$translate_vms(vms_fixfilename(path));
073263
!     if ( (int) result == 0 || (int) result == -1  ) {
073263
!         cnt = 0;
073263
!     }
073263
!     else {
073263
!         cnt = decc$to_vms(result, vms_wproc, 1 /*allow_wild*/, (flags & EW_DIR ? 0:1 ) /*allow directory*/);
073263
!     }
073263
      if (cnt > 0)
073263
  	cnt = vms_match_num;
073263
      for (i = 0; i < cnt; i++)
073263
***************
073263
*** 521,526 ****
073263
--- 543,549 ----
073263
      char *end_of_dir;
073263
      char ch;
073263
      int len;
073263
+     char *out_str=out;
073263
  
073263
      /* copy vms filename portion up to last colon
073263
       * (node and/or disk)
073263
***************
073263
*** 602,608 ****
073263
  	*end_of_dir = ']';
073263
  }
073263
  
073263
- 
073263
  /*
073263
   * for decc$to_vms in vms_fixfilename
073263
   */
073263
--- 625,630 ----
073263
***************
073263
*** 710,735 ****
073263
      struct _generic_64 time_diff;
073263
      struct _generic_64 time_out;
073263
      unsigned int convert_operation = LIB$K_DELTA_SECONDS_F;
073263
!     float sec = (float) msec / 1000;
073263
  
073263
      /* make sure the iochan is set */
073263
      if (!iochan)
073263
  	get_tty();
073263
  
073263
!     if (msec > 0) {
073263
          /* time-out specified; convert it to absolute time */
073263
  
073263
          /* get current time (number of 100ns ticks since the VMS Epoch) */
073263
          status = sys$gettim(&time_curr);
073263
          if (status != SS$_NORMAL)
073263
              return 0; /* error */
073263
- 
073263
          /* construct the delta time */
073263
!         status = lib$cvtf_to_internal_time(
073263
                  &convert_operation, &sec, &time_diff);
073263
          if (status != LIB$_NORMAL)
073263
              return 0; /* error */
073263
- 
073263
          /* add them up */
073263
          status = lib$add_times(
073263
                  &time_curr,
073263
--- 732,764 ----
073263
      struct _generic_64 time_diff;
073263
      struct _generic_64 time_out;
073263
      unsigned int convert_operation = LIB$K_DELTA_SECONDS_F;
073263
!     float sec =(float) msec/1000;
073263
  
073263
      /* make sure the iochan is set */
073263
      if (!iochan)
073263
  	get_tty();
073263
  
073263
!     if (sec > 0) {
073263
          /* time-out specified; convert it to absolute time */
073263
+ 	/* sec>0 requirement of lib$cvtf_to_internal_time()*/
073263
  
073263
          /* get current time (number of 100ns ticks since the VMS Epoch) */
073263
          status = sys$gettim(&time_curr);
073263
          if (status != SS$_NORMAL)
073263
              return 0; /* error */
073263
          /* construct the delta time */
073263
! #if __G_FLOAT==0
073263
! # ifndef VAX
073263
! 	/* IEEE is default on IA64, but can be used on Alpha too - but not on VAX */
073263
!         status = lib$cvts_to_internal_time(
073263
                  &convert_operation, &sec, &time_diff);
073263
+ # endif
073263
+ #else   /* default on Alpha and VAX  */
073263
+         status = lib$cvtf_to_internal_time(
073263
+ 		&convert_operation, &sec, &time_diff);
073263
+ #endif
073263
          if (status != LIB$_NORMAL)
073263
              return 0; /* error */
073263
          /* add them up */
073263
          status = lib$add_times(
073263
                  &time_curr,
073263
*** ../vim-7.4.196/src/os_vms_conf.h	2014-02-23 22:52:33.372764715 +0100
073263
--- src/os_vms_conf.h	2014-03-12 15:55:50.204741288 +0100
073263
***************
073263
*** 166,173 ****
073263
  #undef  HAVE_SYS_TIME_H
073263
  #undef  HAVE_LOCALE_H
073263
  #define BROKEN_LOCALE
073263
- #undef  HAVE_ICONV_H
073263
- #undef  HAVE_ICONV
073263
  #undef  DYNAMIC_ICONV
073263
  #undef	HAVE_STRFTIME
073263
  #else
073263
--- 166,171 ----
073263
***************
073263
*** 177,188 ****
073263
  #define HAVE_SYS_TIME_H
073263
  #define HAVE_LOCALE_H
073263
  #define BROKEN_LOCALE
073263
- #undef  HAVE_ICONV_H
073263
- #undef  HAVE_ICONV
073263
  #undef  DYNAMIC_ICONV
073263
  #define	HAVE_STRFTIME
073263
  #endif
073263
  
073263
  /* GUI support defines */
073263
  #if defined(FEAT_GUI_MOTIF) || defined(FEAT_GUI_GTK)
073263
  #define HAVE_X11
073263
--- 175,192 ----
073263
  #define HAVE_SYS_TIME_H
073263
  #define HAVE_LOCALE_H
073263
  #define BROKEN_LOCALE
073263
  #undef  DYNAMIC_ICONV
073263
  #define	HAVE_STRFTIME
073263
  #endif
073263
  
073263
+ #if defined(USE_ICONV)
073263
+ #define HAVE_ICONV_H
073263
+ #define HAVE_ICONV
073263
+ #else
073263
+ #undef HAVE_ICONV_H
073263
+ #undef HAVE_ICONV
073263
+ #endif
073263
+ 
073263
  /* GUI support defines */
073263
  #if defined(FEAT_GUI_MOTIF) || defined(FEAT_GUI_GTK)
073263
  #define HAVE_X11
073263
*** ../vim-7.4.196/src/proto/os_vms.pro	2013-08-10 13:37:40.000000000 +0200
073263
--- src/proto/os_vms.pro	2014-03-12 15:55:50.204741288 +0100
073263
***************
073263
*** 7,12 ****
073263
--- 7,13 ----
073263
  int vms_sys __ARGS((char *cmd, char *out, char *inp));
073263
  int vms_sys_status __ARGS((int status));
073263
  int vms_read __ARGS((char *inbuf, size_t nbytes));
073263
+ char *vms_tolower __ARGS((char *name));
073263
  int mch_expand_wildcards __ARGS((int num_pat, char_u **pat, int *num_file, char_u ***file, int flags));
073263
  int mch_expandpath __ARGS((garray_T *gap, char_u *path, int flags));
073263
  void *vms_fixfilename __ARGS((void *instring));
073263
*** ../vim-7.4.196/src/testdir/Make_vms.mms	2014-02-23 23:38:58.812760280 +0100
073263
--- src/testdir/Make_vms.mms	2014-03-12 16:06:22.888750982 +0100
073263
***************
073263
*** 4,10 ****
073263
  # Authors:	Zoltan Arpadffy, <arpadffy@polarhome.com>
073263
  #		Sandor Kopanyi,  <sandor.kopanyi@mailbox.hu>
073263
  #
073263
! # Last change:  2014 Feb 23
073263
  #
073263
  # This has been tested on VMS 6.2 to 8.3 on DEC Alpha, VAX and IA64.
073263
  # Edit the lines in the Configuration section below to select.
073263
--- 4,10 ----
073263
  # Authors:	Zoltan Arpadffy, <arpadffy@polarhome.com>
073263
  #		Sandor Kopanyi,  <sandor.kopanyi@mailbox.hu>
073263
  #
073263
! # Last change:  2014 Mar 12
073263
  #
073263
  # This has been tested on VMS 6.2 to 8.3 on DEC Alpha, VAX and IA64.
073263
  # Edit the lines in the Configuration section below to select.
073263
***************
073263
*** 41,56 ****
073263
  # They fail because VMS does not support file names.
073263
  # WANT_SPELL = YES
073263
  
073263
! # Comment out if you want to run mzschema  tests.
073263
  # It fails because VMS does not support this feature yet.
073263
  # WANT_MZSCH = YES
073263
  
073263
  # Comment out if you have gzip on your system
073263
  # HAVE_GZIP = YES
073263
  
073263
  # Comment out if you have GNU compatible diff on your system
073263
  # HAVE_GDIFF = YES
073263
  
073263
  #######################################################################
073263
  # End of configuration section.
073263
  #
073263
--- 41,71 ----
073263
  # They fail because VMS does not support file names.
073263
  # WANT_SPELL = YES
073263
  
073263
! # Comment out if you want to run mzschema tests.
073263
  # It fails because VMS does not support this feature yet.
073263
  # WANT_MZSCH = YES
073263
  
073263
+ # Comment out if you have ODS-5 file system                                                                                                                 
073263
+ # HAVE_ODS5 = YES
073263
+ 
073263
  # Comment out if you have gzip on your system
073263
  # HAVE_GZIP = YES
073263
  
073263
  # Comment out if you have GNU compatible diff on your system
073263
  # HAVE_GDIFF = YES
073263
  
073263
+ # Comment out if you have GNU compatible cksum on your system                                                                                                  
073263
+ # HAVE_CKSUM = YES
073263
+ 
073263
+ # Comment out if you have ICONV support                                                                                                  
073263
+ # HAVE_ICONV = YES
073263
+ 
073263
+ # Comment out if you have LUA support
073263
+ # HAVE_LUA = YES
073263
+ 
073263
+ # Comment out if you have PYTHON support
073263
+ # HAVE_PYTHON = YES
073263
+ 
073263
  #######################################################################
073263
  # End of configuration section.
073263
  #
073263
***************
073263
*** 63,99 ****
073263
  
073263
  SCRIPT = test1.out  test2.out  test3.out  test4.out  test5.out  \
073263
  	 test6.out  test7.out  test8.out  test9.out  test10a.out\
073263
! 	 test13.out test14.out test15.out test17.out \
073263
  	 test18.out test19.out test20.out test21.out test22.out \
073263
  	 test23.out test24.out test26.out \
073263
  	 test28.out test29.out test30.out test31.out test32.out \
073263
  	 test33.out test34.out test35.out test36.out test37.out \
073263
  	 test38.out test39.out test40.out test41.out test42.out \
073263
  	 test43.out test44.out test45.out test46.out \
073263
! 	 test48.out test51.out test53.out test54.out test55.out \
073263
! 	 test56.out test57.out test60.out \
073263
  	 test61.out test62.out test63.out test64.out test65.out \
073263
  	 test66.out test67.out test68.out test69.out \
073263
  	 test71.out test72.out test74.out test75.out test76.out \
073263
! 	 test77.out test78.out test79.out test80.out test81.out \
073263
! 	 test82.out test83.out test84.out test88.out test89.out \
073263
  	 test90.out test91.out test92.out test93.out test94.out \
073263
! 	 test95.out test96.out test97.out test98.out test99.out \
073263
! 	 test100.out test101.out test102.out test103.out test104.out \
073263
  	 test105.out
073263
  
073263
  # Known problems:
073263
! # Test 30: a problem around mac format - unknown reason
073263
  #
073263
! # Test 32: VMS is not case sensitive and all filenames are lowercase within Vim
073263
  # (this should be changed in order to preserve the original filename) - should
073263
  # be fixed. VMS allows just one dot in the filename
073263
  #
073263
! # Test 58 and 59: Failed/Hangs - VMS does not support spell files (file names
073263
  # with too many dots).
073263
  #
073263
! # Test 72: unknown reason
073263
! # Test 85: no Lua interface
073263
  
073263
  .IFDEF WANT_GUI
073263
  SCRIPT_GUI = test16.out
073263
--- 78,121 ----
073263
  
073263
  SCRIPT = test1.out  test2.out  test3.out  test4.out  test5.out  \
073263
  	 test6.out  test7.out  test8.out  test9.out  test10a.out\
073263
! 	 test13.out test14.out test15.out \
073263
  	 test18.out test19.out test20.out test21.out test22.out \
073263
  	 test23.out test24.out test26.out \
073263
  	 test28.out test29.out test30.out test31.out test32.out \
073263
  	 test33.out test34.out test35.out test36.out test37.out \
073263
  	 test38.out test39.out test40.out test41.out test42.out \
073263
  	 test43.out test44.out test45.out test46.out \
073263
! 	 test48.out test49.out test51.out test53.out test54.out \
073263
! 	 test55.out test56.out test57.out test60.out \
073263
  	 test61.out test62.out test63.out test64.out test65.out \
073263
  	 test66.out test67.out test68.out test69.out \
073263
  	 test71.out test72.out test74.out test75.out test76.out \
073263
! 	 test77a.out test78.out test79.out test80.out test81.out \
073263
! 	 test82.out test84.out test88.out test89.out \
073263
  	 test90.out test91.out test92.out test93.out test94.out \
073263
! 	 test95.out test96.out test98.out test99.out \
073263
! 	 test100.out test101.out test103.out test104.out \
073263
  	 test105.out
073263
  
073263
  # Known problems:
073263
! # test17: ?
073263
! #
073263
! # test30: bug, most probably - a problem around mac format
073263
  #
073263
! # test32: VMS is not case sensitive and all filenames are lowercase within Vim
073263
  # (this should be changed in order to preserve the original filename) - should
073263
  # be fixed. VMS allows just one dot in the filename
073263
  #
073263
! # test58, test59: Failed/Hangs - VMS does not support spell files (file names
073263
  # with too many dots).
073263
  #
073263
! # test72: bug - Vim hangs at :rename (while rename works well otherwise)
073263
! # test78: bug - Vim dies at :recover Xtest 
073263
! # test83: ?
073263
! # test85: no Lua interface
073263
! # test89: bug - findfile() does not work on VMS (just in the current directory) 
073263
! # test97, test102: Just ODS-5 supports space and special chars in the filename.
073263
! # On ODS-2 tests fail. 
073263
  
073263
  .IFDEF WANT_GUI
073263
  SCRIPT_GUI = test16.out
073263
***************
073263
*** 101,107 ****
073263
  .ENDIF
073263
  
073263
  .IFDEF WANT_UNIX
073263
! SCRIPT_UNIX = test10.out test12.out test25.out test27.out test49.out test73.out
073263
  .ENDIF
073263
  
073263
  .IFDEF WANT_WIN
073263
--- 123,129 ----
073263
  .ENDIF
073263
  
073263
  .IFDEF WANT_UNIX
073263
! SCRIPT_UNIX = test10.out test12.out test17.out test25.out test27.out test49.out test73.out
073263
  .ENDIF
073263
  
073263
  .IFDEF WANT_WIN
073263
***************
073263
*** 116,121 ****
073263
--- 138,147 ----
073263
  SCRIPT_MZSCH = test70.out 
073263
  .ENDIF
073263
  
073263
+ .IFDEF HAVE_ODS5                                                                                                                                   
073263
+ SCRIPT_ODS5 = test97.out test102.out                                                                                                   
073263
+ .ENDIF  
073263
+ 
073263
  .IFDEF HAVE_GZIP
073263
  SCRIPT_GZIP = test11.out
073263
  .ENDIF
073263
***************
073263
*** 124,133 ****
073263
--- 150,177 ----
073263
  SCRIPT_GDIFF = test47.out
073263
  .ENDIF
073263
  
073263
+ .IFDEF HAVE_CKSUM
073263
+ SCRIPT_CKSUM = test77.out
073263
+ .ENDIF
073263
+ 
073263
+ .IFDEF HAVE_ICONV
073263
+ SCRIPT_ICONV = test83.out
073263
+ .ENDIF
073263
+ 
073263
+ .IFDEF HAVE_LUA
073263
+ SCRIPT_LUA = test85.out
073263
+ .ENDIF
073263
+ 
073263
+ .IFDEF HAVE_PYTHON
073263
+ SCRIPT_PYTHON = test86.out test87.out
073263
+ .ENDIF
073263
+ 
073263
  .in.out :
073263
  	-@ !clean up before doing the test
073263
  	-@ if "''F$SEARCH("test.out.*")'" .NES. "" then delete/noconfirm/nolog test.out.*
073263
  	-@ if "''F$SEARCH("$*.out.*")'"   .NES. "" then delete/noconfirm/nolog $*.out.*
073263
+ 	-@ ! define TMP if not set - some tests use it
073263
+ 	-@ if "''F$TRNLNM("TMP")'" .EQS. "" then define/nolog TMP []
073263
  	-@ write sys$output " "
073263
  	-@ write sys$output "-----------------------------------------------"
073263
  	-@ write sys$output "                "$*" "
073263
***************
073263
*** 140,148 ****
073263
  	-@ if "''F$SEARCH("$*.out.*")'"   .NES. "" then differences /par $*.out $*.ok;
073263
  	-@ !clean up after the test
073263
  	-@ if "''F$SEARCH("Xdotest.*")'"  .NES. "" then delete/noconfirm/nolog Xdotest.*.*
073263
  
073263
! all : clean nolog $(START_WITH) $(SCRIPT) $(SCRIPT_GUI) $(SCRIPT_UNIX) $(SCRIPT_WIN) $(SCRIPT_SPELL) $(SCRIPT_GZIP) \
073263
!     $(SCRIPT_GDIFF) $(SCRIPT_MZSCH) nolog 
073263
  	-@ write sys$output " "
073263
  	-@ write sys$output "-----------------------------------------------"
073263
  	-@ write sys$output "                All done"
073263
--- 184,193 ----
073263
  	-@ if "''F$SEARCH("$*.out.*")'"   .NES. "" then differences /par $*.out $*.ok;
073263
  	-@ !clean up after the test
073263
  	-@ if "''F$SEARCH("Xdotest.*")'"  .NES. "" then delete/noconfirm/nolog Xdotest.*.*
073263
+ 	-@ if "''F$SEARCH("Xtest.*")'"    .NES. "" then delete/noconfirm/nolog Xtest.*.*
073263
  
073263
! all : clean nolog $(START_WITH) $(SCRIPT) $(SCRIPT_GUI) $(SCRIPT_UNIX) $(SCRIPT_WIN) $(SCRIPT_SPELL) $(SCRIPT_ODS5) $(SCRIPT_GZIP) \
073263
!     $(SCRIPT_GDIFF) $(SCRIPT_MZSCH) $(SCRIPT_CKSUM) $(SCRIPT_ICONV) $(SCRIPT_LUA) $(SCRIPT_PYTHON) nolog 
073263
  	-@ write sys$output " "
073263
  	-@ write sys$output "-----------------------------------------------"
073263
  	-@ write sys$output "                All done"
073263
***************
073263
*** 165,177 ****
073263
  	-@ write sys$output "                Test results:"
073263
  	-@ write sys$output "-----------------------------------------------"
073263
  	-@ write sys$output "MAKE_VMS.MMS options:"
073263
! 	-@ write sys$output "   WANT_GUI  = ""$(WANT_GUI)"" "
073263
! 	-@ write sys$output "   WANT_UNIX = ""$(WANT_UNIX)"" "
073263
! 	-@ write sys$output "   WANT_WIN  = ""$(WANT_WIN)"" "
073263
! 	-@ write sys$output "   WANT_SPELL= ""$(WANT_SPELL)"" "
073263
! 	-@ write sys$output "   WANT_MZSCH= ""$(WANT_MZSCH)"" "
073263
! 	-@ write sys$output "   HAVE_GZIP = ""$(HAVE_GZIP)"" "
073263
! 	-@ write sys$output "   HAVE_GDIFF= ""$(HAVE_GDIFF)"" "
073263
  	-@ write sys$output "Default vimrc file is VMS.VIM:"
073263
  	-@ write sys$output "-----------------------------------------------"
073263
  	-@ type VMS.VIM
073263
--- 210,227 ----
073263
  	-@ write sys$output "                Test results:"
073263
  	-@ write sys$output "-----------------------------------------------"
073263
  	-@ write sys$output "MAKE_VMS.MMS options:"
073263
! 	-@ write sys$output "   WANT_GUI   = ""$(WANT_GUI)"" "
073263
! 	-@ write sys$output "   WANT_UNIX  = ""$(WANT_UNIX)"" "
073263
! 	-@ write sys$output "   WANT_WIN   = ""$(WANT_WIN)"" "
073263
! 	-@ write sys$output "   WANT_SPELL = ""$(WANT_SPELL)"" "
073263
! 	-@ write sys$output "   WANT_MZSCH = ""$(WANT_MZSCH)"" "
073263
! 	-@ write sys$output "   HAVE_ODS5  = ""$(HAVE_ODS5)"" "
073263
! 	-@ write sys$output "   HAVE_GZIP  = ""$(HAVE_GZIP)"" "
073263
! 	-@ write sys$output "   HAVE_GDIFF = ""$(HAVE_GDIFF)"" "
073263
! 	-@ write sys$output "   HAVE_CKSUM = ""$(HAVE_CKSUM)"" "	  
073263
! 	-@ write sys$output "   HAVE_ICONV = ""$(HAVE_ICONV)"" "
073263
! 	-@ write sys$output "   HAVE_LUA   = ""$(HAVE_LUA)"" "
073263
! 	-@ write sys$output "   HAVE_PYTHON= ""$(HAVE_PYTHON)"" "
073263
  	-@ write sys$output "Default vimrc file is VMS.VIM:"
073263
  	-@ write sys$output "-----------------------------------------------"
073263
  	-@ type VMS.VIM
073263
***************
073263
*** 181,186 ****
073263
--- 231,239 ----
073263
  	-@ if "''F$SEARCH("test.log")'"     .NES. "" then delete/noconfirm/nolog test.log.*
073263
  	-@ if "''F$SEARCH("test.ok")'"      .NES. "" then delete/noconfirm/nolog test.ok.*
073263
  	-@ if "''F$SEARCH("Xdotest.*")'"    .NES. "" then delete/noconfirm/nolog Xdotest.*.*
073263
+ 	-@ if "''F$SEARCH("Xtest*.*")'"     .NES. "" then delete/noconfirm/nolog Xtest*.*.*
073263
+ 	-@ if "''F$SEARCH("XX*.*")'"        .NES. "" then delete/noconfirm/nolog XX*.*.*
073263
+ 	-@ if "''F$SEARCH("_un_*.*")'"      .NES. "" then delete/noconfirm/nolog _un_*.*.*
073263
  	-@ if "''F$SEARCH("*.*_sw*")'"      .NES. "" then delete/noconfirm/nolog *.*_sw*.*
073263
  	-@ if "''F$SEARCH("*.failed")'"     .NES. "" then delete/noconfirm/nolog *.failed.*
073263
  	-@ if "''F$SEARCH("*.rej")'"        .NES. "" then delete/noconfirm/nolog *.rej.*
073263
***************
073263
*** 188,193 ****
073263
  	-@ if "''F$SEARCH("small.vim")'"    .NES. "" then delete/noconfirm/nolog small.vim.*
073263
  	-@ if "''F$SEARCH("mbyte.vim")'"    .NES. "" then delete/noconfirm/nolog mbyte.vim.*
073263
  	-@ if "''F$SEARCH("mzscheme.vim")'" .NES. "" then delete/noconfirm/nolog mzscheme.vim.*
073263
! 	-@ if "''F$SEARCH("lua.vim")'" .NES. "" then delete/noconfirm/nolog lua.vim.*
073263
  	-@ if "''F$SEARCH("viminfo.*")'"    .NES. "" then delete/noconfirm/nolog viminfo.*.*
073263
  
073263
--- 241,246 ----
073263
  	-@ if "''F$SEARCH("small.vim")'"    .NES. "" then delete/noconfirm/nolog small.vim.*
073263
  	-@ if "''F$SEARCH("mbyte.vim")'"    .NES. "" then delete/noconfirm/nolog mbyte.vim.*
073263
  	-@ if "''F$SEARCH("mzscheme.vim")'" .NES. "" then delete/noconfirm/nolog mzscheme.vim.*
073263
! 	-@ if "''F$SEARCH("lua.vim")'"      .NES. "" then delete/noconfirm/nolog lua.vim.*
073263
  	-@ if "''F$SEARCH("viminfo.*")'"    .NES. "" then delete/noconfirm/nolog viminfo.*.*
073263
  
073263
*** ../vim-7.4.196/src/testdir/test72.in	2012-01-04 19:04:17.000000000 +0100
073263
--- src/testdir/test72.in	2014-03-12 15:55:50.204741288 +0100
073263
***************
073263
*** 105,111 ****
073263
  u:.w >>test.out
073263
  :"
073263
  :" Rename the undo file so that it gets cleaned up.
073263
! :call rename(".Xtestfile.un~", "Xtestundo")
073263
  :qa!
073263
  ENDTEST
073263
  
073263
--- 105,115 ----
073263
  u:.w >>test.out
073263
  :"
073263
  :" Rename the undo file so that it gets cleaned up.
073263
! :if has("vms")
073263
! : call rename("_un_Xtestfile", "Xtestundo")
073263
! :else
073263
! : call rename(".Xtestfile.un~", "Xtestundo")
073263
! :endif
073263
  :qa!
073263
  ENDTEST
073263
  
073263
*** ../vim-7.4.196/src/testdir/test77a.com	2014-03-12 16:49:10.740790329 +0100
073263
--- src/testdir/test77a.com	2014-03-12 16:40:04.316781957 +0100
073263
***************
073263
*** 0 ****
073263
--- 1,8 ----
073263
+ $! test77a - help file creating checksum on VMS
073263
+ $! Created by Zoltan Arpadffy
073263
+ $
073263
+ $ IF P1 .NES. ""
073263
+ $ THEN
073263
+ $    checksum 'P1'
073263
+ $    show symb CHECKSUM$CHECKSUM
073263
+ $ ENDIF
073263
*** ../vim-7.4.196/src/testdir/test77a.in	2014-03-12 16:49:10.748790329 +0100
073263
--- src/testdir/test77a.in	2014-03-12 15:55:50.204741288 +0100
073263
***************
073263
*** 0 ****
073263
--- 1,31 ----
073263
+ Inserts 2 million lines with consecutive integers starting from 1
073263
+ (essentially, the output of GNU's seq 1 2000000), writes them to Xtest
073263
+ and writes its cksum to test.out.
073263
+ 
073263
+ We need 2 million lines to trigger a call to mf_hash_grow().  If it would mess
073263
+ up the lines the checksum would differ.
073263
+ 
073263
+ cksum is part of POSIX and so should be available on most Unixes.
073263
+ If it isn't available then the test will be skipped.
073263
+ 
073263
+ VMS does not have CKSUM but has a built in CHECKSUM - it should be used
073263
+ STARTTEST
073263
+ :so small.vim
073263
+ :if !has("vms")
073263
+ : e! test.ok
073263
+ : w! test.out
073263
+ : qa!
073263
+ :endif
073263
+ :set fileformat=unix undolevels=-1
073263
+ ggdG
073263
+ :let i = 1
073263
+ :while i <= 2000000 | call append(i, range(i, i + 99)) | let i += 100 | endwhile
073263
+ ggdd
073263
+ :w! Xtest.
073263
+ :r !@test77a.com Xtest.
073263
+ :s/\s/ /g
073263
+ :set fileformat&
073263
+ :.w! test.out
073263
+ :qa!
073263
+ ENDTEST
073263
+ 
073263
*** ../vim-7.4.196/src/testdir/test77a.ok	2014-03-12 16:49:10.756790330 +0100
073263
--- src/testdir/test77a.ok	2014-03-12 15:55:50.204741288 +0100
073263
***************
073263
*** 0 ****
073263
--- 1 ----
073263
+   CHECKSUM$CHECKSUM = "844110470"
073263
*** ../vim-7.4.196/src/undo.c	2014-01-23 18:12:44.695676751 +0100
073263
--- src/undo.c	2014-03-12 16:31:52.432774419 +0100
073263
***************
073263
*** 790,798 ****
073263
--- 790,809 ----
073263
  	    if (undo_file_name == NULL)
073263
  		break;
073263
  	    p = gettail(undo_file_name);
073263
+ #ifdef VMS
073263
+ 	    /* VMS can not handle more than one dot in the filenames
073263
+ 	     * use "dir/name" -> "dir/_un_name" - add _un_
073263
+ 	     * at the beginning to keep the extension */
073263
+ 	    mch_memmove(p + 4,  p, STRLEN(p) + 1);
073263
+ 	    mch_memmove(p, "_un_", 4);
073263
+ 
073263
+ #else
073263
+ 	    /* Use same directory as the ffname,
073263
+ 	     * "dir/name" -> "dir/.name.un~" */
073263
  	    mch_memmove(p + 1, p, STRLEN(p) + 1);
073263
  	    *p = '.';
073263
  	    STRCAT(p, ".un~");
073263
+ #endif
073263
  	}
073263
  	else
073263
  	{
073263
*** ../vim-7.4.196/src/version.c	2014-03-12 15:50:18.472736205 +0100
073263
--- src/version.c	2014-03-12 15:54:26.712740008 +0100
073263
***************
073263
*** 740,741 ****
073263
--- 740,743 ----
073263
  {   /* Add new patch number below this line */
073263
+ /**/
073263
+     197,
073263
  /**/
073263
073263
-- 
073263
Violators can be fined, arrested or jailed for making ugly faces at a dog.
073263
		[real standing law in Oklahoma, United States of America]
073263
073263
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
073263
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
073263
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
073263
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///