astepano / rpms / vim

Forked from rpms/vim 6 years ago
Clone
27c1b03
To: vim_dev@googlegroups.com
27c1b03
Subject: Patch 7.4.506
27c1b03
Fcc: outbox
27c1b03
From: Bram Moolenaar <Bram@moolenaar.net>
27c1b03
Mime-Version: 1.0
27c1b03
Content-Type: text/plain; charset=UTF-8
27c1b03
Content-Transfer-Encoding: 8bit
27c1b03
------------
27c1b03
27c1b03
Patch 7.4.506
27c1b03
Problem:    MS-Windows: Cannot open a file with 259 characters.
27c1b03
Solution:   Fix off-by-one error. (Ken Takata)
27c1b03
Files:	    src/os_mswin.c
27c1b03
27c1b03
27c1b03
*** ../vim-7.4.505/src/os_mswin.c	2014-10-16 20:35:32.146264814 +0200
27c1b03
--- src/os_mswin.c	2014-11-05 19:32:59.748315256 +0100
27c1b03
***************
27c1b03
*** 411,417 ****
27c1b03
  	     * - convert the result from UCS2 to 'encoding'.
27c1b03
  	     */
27c1b03
  	    wname = enc_to_utf16(fname, NULL);
27c1b03
! 	    if (wname != NULL && _wfullpath(wbuf, wname, MAX_PATH - 1) != NULL)
27c1b03
  	    {
27c1b03
  		cname = utf16_to_enc((short_u *)wbuf, NULL);
27c1b03
  		if (cname != NULL)
27c1b03
--- 411,417 ----
27c1b03
  	     * - convert the result from UCS2 to 'encoding'.
27c1b03
  	     */
27c1b03
  	    wname = enc_to_utf16(fname, NULL);
27c1b03
! 	    if (wname != NULL && _wfullpath(wbuf, wname, MAX_PATH) != NULL)
27c1b03
  	    {
27c1b03
  		cname = utf16_to_enc((short_u *)wbuf, NULL);
27c1b03
  		if (cname != NULL)
27c1b03
*** ../vim-7.4.505/src/version.c	2014-11-05 18:35:59.104397681 +0100
27c1b03
--- src/version.c	2014-11-05 19:27:04.520323815 +0100
27c1b03
***************
27c1b03
*** 743,744 ****
27c1b03
--- 743,746 ----
27c1b03
  {   /* Add new patch number below this line */
27c1b03
+ /**/
27c1b03
+     506,
27c1b03
  /**/
27c1b03
27c1b03
-- 
27c1b03
Trees moving back and forth is what makes the wind blow.
27c1b03
27c1b03
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
27c1b03
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
27c1b03
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
27c1b03
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///