073263
To: vim_dev@googlegroups.com
073263
Subject: Patch 7.4.506
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.506
073263
Problem:    MS-Windows: Cannot open a file with 259 characters.
073263
Solution:   Fix off-by-one error. (Ken Takata)
073263
Files:	    src/os_mswin.c
073263
073263
073263
*** ../vim-7.4.505/src/os_mswin.c	2014-10-16 20:35:32.146264814 +0200
073263
--- src/os_mswin.c	2014-11-05 19:32:59.748315256 +0100
073263
***************
073263
*** 411,417 ****
073263
  	     * - convert the result from UCS2 to 'encoding'.
073263
  	     */
073263
  	    wname = enc_to_utf16(fname, NULL);
073263
! 	    if (wname != NULL && _wfullpath(wbuf, wname, MAX_PATH - 1) != NULL)
073263
  	    {
073263
  		cname = utf16_to_enc((short_u *)wbuf, NULL);
073263
  		if (cname != NULL)
073263
--- 411,417 ----
073263
  	     * - convert the result from UCS2 to 'encoding'.
073263
  	     */
073263
  	    wname = enc_to_utf16(fname, NULL);
073263
! 	    if (wname != NULL && _wfullpath(wbuf, wname, MAX_PATH) != NULL)
073263
  	    {
073263
  		cname = utf16_to_enc((short_u *)wbuf, NULL);
073263
  		if (cname != NULL)
073263
*** ../vim-7.4.505/src/version.c	2014-11-05 18:35:59.104397681 +0100
073263
--- src/version.c	2014-11-05 19:27:04.520323815 +0100
073263
***************
073263
*** 743,744 ****
073263
--- 743,746 ----
073263
  {   /* Add new patch number below this line */
073263
+ /**/
073263
+     506,
073263
  /**/
073263
073263
-- 
073263
Trees moving back and forth is what makes the wind blow.
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    ///