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