Karsten Hopp 53471c
To: vim_dev@googlegroups.com
Karsten Hopp 53471c
Subject: Patch 7.3.1301
Karsten Hopp 53471c
Fcc: outbox
Karsten Hopp 53471c
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 53471c
Mime-Version: 1.0
Karsten Hopp 53471c
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 53471c
Content-Transfer-Encoding: 8bit
Karsten Hopp 53471c
------------
Karsten Hopp 53471c
Karsten Hopp 53471c
Patch 7.3.1301
Karsten Hopp 53471c
Problem:    Some tests fail on MS-Windows.
Karsten Hopp 53471c
Solution:   Fix path separators in test 89 and 96.  Omit test 97, escaping
Karsten Hopp 53471c
	    works differently.  Make findfile() work on MS-Windows.
Karsten Hopp 53471c
Files:	    src/testdir/Make_dos.mak, src/testdir/Make_ming.mak,
Karsten Hopp 53471c
	    src/testdir/Make_os2.mak, src/testdir/test89.in,
Karsten Hopp 53471c
	    src/testdir/test96.in, src/misc2.c
Karsten Hopp 53471c
Karsten Hopp 53471c
Karsten Hopp 53471c
*** ../vim-7.3.1300/src/testdir/Make_dos.mak	2013-07-03 16:52:52.000000000 +0200
Karsten Hopp 53471c
--- src/testdir/Make_dos.mak	2013-07-03 20:17:26.000000000 +0200
Karsten Hopp 53471c
***************
Karsten Hopp 53471c
*** 11,17 ****
Karsten Hopp 53471c
  # test12	can't unlink a swap file
Karsten Hopp 53471c
  # test25	uses symbolic link
Karsten Hopp 53471c
  # test27	can't edit file with "*" in file name
Karsten Hopp 53471c
! # test31	16 bit version runs out of memory...
Karsten Hopp 53471c
  
Karsten Hopp 53471c
  SCRIPTS16 =	test1.out test19.out test20.out test22.out \
Karsten Hopp 53471c
  		test23.out test24.out test28.out test29.out \
Karsten Hopp 53471c
--- 11,17 ----
Karsten Hopp 53471c
  # test12	can't unlink a swap file
Karsten Hopp 53471c
  # test25	uses symbolic link
Karsten Hopp 53471c
  # test27	can't edit file with "*" in file name
Karsten Hopp 53471c
! # test97	\{ and \$ are not escaped characters.
Karsten Hopp 53471c
  
Karsten Hopp 53471c
  SCRIPTS16 =	test1.out test19.out test20.out test22.out \
Karsten Hopp 53471c
  		test23.out test24.out test28.out test29.out \
Karsten Hopp 53471c
***************
Karsten Hopp 53471c
*** 32,38 ****
Karsten Hopp 53471c
  		test79.out test80.out test81.out test82.out test83.out \
Karsten Hopp 53471c
  		test84.out test85.out test86.out test87.out test88.out \
Karsten Hopp 53471c
  		test89.out test90.out test91.out test92.out test93.out \
Karsten Hopp 53471c
! 		test94.out test95.out test96.out test97.out
Karsten Hopp 53471c
  
Karsten Hopp 53471c
  SCRIPTS32 =	test50.out test70.out
Karsten Hopp 53471c
  
Karsten Hopp 53471c
--- 32,38 ----
Karsten Hopp 53471c
  		test79.out test80.out test81.out test82.out test83.out \
Karsten Hopp 53471c
  		test84.out test85.out test86.out test87.out test88.out \
Karsten Hopp 53471c
  		test89.out test90.out test91.out test92.out test93.out \
Karsten Hopp 53471c
! 		test94.out test95.out test96.out
Karsten Hopp 53471c
  
Karsten Hopp 53471c
  SCRIPTS32 =	test50.out test70.out
Karsten Hopp 53471c
  
Karsten Hopp 53471c
*** ../vim-7.3.1300/src/testdir/Make_ming.mak	2013-07-03 16:52:52.000000000 +0200
Karsten Hopp 53471c
--- src/testdir/Make_ming.mak	2013-07-03 20:17:22.000000000 +0200
Karsten Hopp 53471c
***************
Karsten Hopp 53471c
*** 28,34 ****
Karsten Hopp 53471c
  # test12	can't unlink a swap file
Karsten Hopp 53471c
  # test25	uses symbolic link
Karsten Hopp 53471c
  # test27	can't edit file with "*" in file name
Karsten Hopp 53471c
! # test31	16 bit version runs out of memory...
Karsten Hopp 53471c
  
Karsten Hopp 53471c
  SCRIPTS16 =	test1.out test19.out test20.out test22.out \
Karsten Hopp 53471c
  		test23.out test24.out test28.out test29.out \
Karsten Hopp 53471c
--- 28,34 ----
Karsten Hopp 53471c
  # test12	can't unlink a swap file
Karsten Hopp 53471c
  # test25	uses symbolic link
Karsten Hopp 53471c
  # test27	can't edit file with "*" in file name
Karsten Hopp 53471c
! # test97	\{ and \$ are not escaped characters.
Karsten Hopp 53471c
  
Karsten Hopp 53471c
  SCRIPTS16 =	test1.out test19.out test20.out test22.out \
Karsten Hopp 53471c
  		test23.out test24.out test28.out test29.out \
Karsten Hopp 53471c
***************
Karsten Hopp 53471c
*** 52,58 ****
Karsten Hopp 53471c
  		test79.out test80.out test81.out test82.out test83.out \
Karsten Hopp 53471c
  		test84.out test85.out test86.out test87.out test88.out \
Karsten Hopp 53471c
  		test89.out test90.out test91.out test92.out test93.out \
Karsten Hopp 53471c
! 		test94.out test95.out test96.out test97.out
Karsten Hopp 53471c
  
Karsten Hopp 53471c
  SCRIPTS32 =	test50.out test70.out
Karsten Hopp 53471c
  
Karsten Hopp 53471c
--- 52,58 ----
Karsten Hopp 53471c
  		test79.out test80.out test81.out test82.out test83.out \
Karsten Hopp 53471c
  		test84.out test85.out test86.out test87.out test88.out \
Karsten Hopp 53471c
  		test89.out test90.out test91.out test92.out test93.out \
Karsten Hopp 53471c
! 		test94.out test95.out test96.out
Karsten Hopp 53471c
  
Karsten Hopp 53471c
  SCRIPTS32 =	test50.out test70.out
Karsten Hopp 53471c
  
Karsten Hopp 53471c
*** ../vim-7.3.1300/src/testdir/Make_os2.mak	2013-07-03 16:52:52.000000000 +0200
Karsten Hopp 53471c
--- src/testdir/Make_os2.mak	2013-07-03 20:18:09.000000000 +0200
Karsten Hopp 53471c
***************
Karsten Hopp 53471c
*** 15,20 ****
Karsten Hopp 53471c
--- 15,21 ----
Karsten Hopp 53471c
  # test52	only for Win32
Karsten Hopp 53471c
  # test85	no Lua interface
Karsten Hopp 53471c
  # test86, 87	no Python interface
Karsten Hopp 53471c
+ # test97	\{ and \$ are not escaped characters.
Karsten Hopp 53471c
  
Karsten Hopp 53471c
  SCRIPTS = test1.out test3.out test4.out test5.out test6.out \
Karsten Hopp 53471c
  		test7.out test8.out test9.out \
Karsten Hopp 53471c
***************
Karsten Hopp 53471c
*** 33,39 ****
Karsten Hopp 53471c
  		test76.out test77.out test78.out test79.out test80.out \
Karsten Hopp 53471c
  		test81.out test82.out test83.out test84.out test88.out \
Karsten Hopp 53471c
  		test89.out test90.out test91.out test92.out test93.out \
Karsten Hopp 53471c
! 		test94.out test95.out test96.out test97.out
Karsten Hopp 53471c
  
Karsten Hopp 53471c
  .SUFFIXES: .in .out
Karsten Hopp 53471c
  
Karsten Hopp 53471c
--- 34,40 ----
Karsten Hopp 53471c
  		test76.out test77.out test78.out test79.out test80.out \
Karsten Hopp 53471c
  		test81.out test82.out test83.out test84.out test88.out \
Karsten Hopp 53471c
  		test89.out test90.out test91.out test92.out test93.out \
Karsten Hopp 53471c
! 		test94.out test95.out test96.out
Karsten Hopp 53471c
  
Karsten Hopp 53471c
  .SUFFIXES: .in .out
Karsten Hopp 53471c
  
Karsten Hopp 53471c
*** ../vim-7.3.1300/src/testdir/test96.in	2013-07-01 21:24:40.000000000 +0200
Karsten Hopp 53471c
--- src/testdir/test96.in	2013-07-03 21:16:20.000000000 +0200
Karsten Hopp 53471c
***************
Karsten Hopp 53471c
*** 72,77 ****
Karsten Hopp 53471c
--- 72,79 ----
Karsten Hopp 53471c
  :wincmd n
Karsten Hopp 53471c
  :wincmd K
Karsten Hopp 53471c
  :b test.out
Karsten Hopp 53471c
+ :let fileName = substitute(fileName, '\\', '/', 'g')
Karsten Hopp 53471c
+ :let locationListFileName = substitute(locationListFileName, '\\', '/', 'g')
Karsten Hopp 53471c
  :call append(line('$'), "Test A:")
Karsten Hopp 53471c
  :call append(line('$'), "  - file name displayed: " . fileName)
Karsten Hopp 53471c
  :call append(line('$'), "  - quickfix claims that the file name displayed is: " . locationListFileName)
Karsten Hopp 53471c
***************
Karsten Hopp 53471c
*** 125,130 ****
Karsten Hopp 53471c
--- 127,133 ----
Karsten Hopp 53471c
  :wincmd n
Karsten Hopp 53471c
  :wincmd K
Karsten Hopp 53471c
  :b test.out
Karsten Hopp 53471c
+ :let bufferName = substitute(bufferName, '\\', '/', 'g')
Karsten Hopp 53471c
  :call append(line('$'), "Test C:")
Karsten Hopp 53471c
  :call append(line('$'), "  - 'buftype' of the location list window: " . locationListWindowBufType)
Karsten Hopp 53471c
  :call append(line('$'), "  - buffer displayed in the 2nd window: " . bufferName)
Karsten Hopp 53471c
*** ../vim-7.3.1300/src/misc2.c	2013-07-03 17:51:07.000000000 +0200
Karsten Hopp 53471c
--- src/misc2.c	2013-07-03 21:09:30.000000000 +0200
Karsten Hopp 53471c
***************
Karsten Hopp 53471c
*** 4693,4706 ****
Karsten Hopp 53471c
  #ifdef FEAT_PATH_EXTRA
Karsten Hopp 53471c
  	else
Karsten Hopp 53471c
  	{
Karsten Hopp 53471c
! 	    char_u *p =  vim_strrchr(search_ctx->ffsc_fix_path, PATHSEP);
Karsten Hopp 53471c
  	    char_u *wc_path = NUL;
Karsten Hopp 53471c
  	    char_u *temp = NUL;
Karsten Hopp 53471c
  	    int    len = 0;
Karsten Hopp 53471c
  
Karsten Hopp 53471c
! 	    if (p != NULL)
Karsten Hopp 53471c
  	    {
Karsten Hopp 53471c
! 		len = p - search_ctx->ffsc_fix_path;
Karsten Hopp 53471c
  		STRNCAT(ff_expand_buffer, search_ctx->ffsc_fix_path, len);
Karsten Hopp 53471c
  		add_pathsep(ff_expand_buffer);
Karsten Hopp 53471c
  	    }
Karsten Hopp 53471c
--- 4693,4706 ----
Karsten Hopp 53471c
  #ifdef FEAT_PATH_EXTRA
Karsten Hopp 53471c
  	else
Karsten Hopp 53471c
  	{
Karsten Hopp 53471c
! 	    char_u *p =  gettail(search_ctx->ffsc_fix_path);
Karsten Hopp 53471c
  	    char_u *wc_path = NUL;
Karsten Hopp 53471c
  	    char_u *temp = NUL;
Karsten Hopp 53471c
  	    int    len = 0;
Karsten Hopp 53471c
  
Karsten Hopp 53471c
! 	    if (p > search_ctx->ffsc_fix_path)
Karsten Hopp 53471c
  	    {
Karsten Hopp 53471c
! 		len = p - search_ctx->ffsc_fix_path - 1;
Karsten Hopp 53471c
  		STRNCAT(ff_expand_buffer, search_ctx->ffsc_fix_path, len);
Karsten Hopp 53471c
  		add_pathsep(ff_expand_buffer);
Karsten Hopp 53471c
  	    }
Karsten Hopp 53471c
*** ../vim-7.3.1300/src/version.c	2013-07-03 19:52:49.000000000 +0200
Karsten Hopp 53471c
--- src/version.c	2013-07-03 21:17:33.000000000 +0200
Karsten Hopp 53471c
***************
Karsten Hopp 53471c
*** 730,731 ****
Karsten Hopp 53471c
--- 730,733 ----
Karsten Hopp 53471c
  {   /* Add new patch number below this line */
Karsten Hopp 53471c
+ /**/
Karsten Hopp 53471c
+     1301,
Karsten Hopp 53471c
  /**/
Karsten Hopp 53471c
Karsten Hopp 53471c
-- 
Karsten Hopp 53471c
Q: How do you tell the difference between a female cat and a male cat?
Karsten Hopp 53471c
A: You ask it a question and if HE answers, it's a male but, if SHE
Karsten Hopp 53471c
   answers, it's a female.
Karsten Hopp 53471c
Karsten Hopp 53471c
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 53471c
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 53471c
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp 53471c
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///