Karsten Hopp 27ebb1
To: vim_dev@googlegroups.com
Karsten Hopp 27ebb1
Subject: Patch 7.3.600
Karsten Hopp 27ebb1
Fcc: outbox
Karsten Hopp 27ebb1
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 27ebb1
Mime-Version: 1.0
Karsten Hopp 27ebb1
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 27ebb1
Content-Transfer-Encoding: 8bit
Karsten Hopp 27ebb1
------------
Karsten Hopp 27ebb1
Karsten Hopp 27ebb1
Patch 7.3.600
Karsten Hopp 27ebb1
Problem:    <f-args> is not expanded properly with DBCS encoding.
Karsten Hopp 27ebb1
Solution:   Skip over character instead of byte. (Yukihiro Nakadaira)
Karsten Hopp 27ebb1
Files:	    src/ex_docmd.c
Karsten Hopp 27ebb1
Karsten Hopp 27ebb1
Karsten Hopp 27ebb1
*** ../vim-7.3.599/src/ex_docmd.c	2012-07-06 18:27:34.000000000 +0200
Karsten Hopp 27ebb1
--- src/ex_docmd.c	2012-07-10 19:20:10.000000000 +0200
Karsten Hopp 27ebb1
***************
Karsten Hopp 27ebb1
*** 5845,5852 ****
Karsten Hopp 27ebb1
--- 5845,5858 ----
Karsten Hopp 27ebb1
  	}
Karsten Hopp 27ebb1
  	else
Karsten Hopp 27ebb1
  	{
Karsten Hopp 27ebb1
+ #ifdef FEAT_MBYTE
Karsten Hopp 27ebb1
+ 	    int charlen = (*mb_ptr2len)(p);
Karsten Hopp 27ebb1
+ 	    len += charlen;
Karsten Hopp 27ebb1
+ 	    p += charlen;
Karsten Hopp 27ebb1
+ #else
Karsten Hopp 27ebb1
  	    ++len;
Karsten Hopp 27ebb1
  	    ++p;
Karsten Hopp 27ebb1
+ #endif
Karsten Hopp 27ebb1
  	}
Karsten Hopp 27ebb1
      }
Karsten Hopp 27ebb1
  
Karsten Hopp 27ebb1
***************
Karsten Hopp 27ebb1
*** 5889,5895 ****
Karsten Hopp 27ebb1
  	}
Karsten Hopp 27ebb1
  	else
Karsten Hopp 27ebb1
  	{
Karsten Hopp 27ebb1
! 	    *q++ = *p++;
Karsten Hopp 27ebb1
  	}
Karsten Hopp 27ebb1
      }
Karsten Hopp 27ebb1
      *q++ = '"';
Karsten Hopp 27ebb1
--- 5895,5901 ----
Karsten Hopp 27ebb1
  	}
Karsten Hopp 27ebb1
  	else
Karsten Hopp 27ebb1
  	{
Karsten Hopp 27ebb1
! 	    MB_COPY_CHAR(p, q);
Karsten Hopp 27ebb1
  	}
Karsten Hopp 27ebb1
      }
Karsten Hopp 27ebb1
      *q++ = '"';
Karsten Hopp 27ebb1
*** ../vim-7.3.599/src/version.c	2012-07-10 18:31:49.000000000 +0200
Karsten Hopp 27ebb1
--- src/version.c	2012-07-10 19:21:29.000000000 +0200
Karsten Hopp 27ebb1
***************
Karsten Hopp 27ebb1
*** 716,717 ****
Karsten Hopp 27ebb1
--- 716,719 ----
Karsten Hopp 27ebb1
  {   /* Add new patch number below this line */
Karsten Hopp 27ebb1
+ /**/
Karsten Hopp 27ebb1
+     600,
Karsten Hopp 27ebb1
  /**/
Karsten Hopp 27ebb1
Karsten Hopp 27ebb1
-- 
Karsten Hopp 27ebb1
In a world without walls and borders, who needs windows and gates?
Karsten Hopp 27ebb1
Karsten Hopp 27ebb1
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 27ebb1
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 27ebb1
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp 27ebb1
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///