4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: When the last character of a file name is a multi-byte character
12 and the last byte is a path separator, the file cannot be edited.
13 Solution: Check for the last byte to be part of a multi-byte character.
18 *** ../vim-6.3.020/src/fileio.c Tue Jun 29 20:07:02 2004
19 --- src/fileio.c Sat Sep 4 15:55:15 2004
22 * file may destroy it! Reported on MS-DOS and Win 95.
23 * If the name is too long we might crash further on, quit here.
27 ! && (vim_ispathsep(*(fname + STRLEN(fname) - 1))
28 ! || STRLEN(fname) >= MAXPATHL))
30 ! filemess(curbuf, fname, (char_u *)_("Illegal file name"), 0);
32 ! msg_scroll = msg_save;
38 * file may destroy it! Reported on MS-DOS and Win 95.
39 * If the name is too long we might crash further on, quit here.
41 ! if (fname != NULL && *fname != NUL)
43 ! p = fname + STRLEN(fname) - 1;
44 ! if ((vim_ispathsep(*p)
46 ! /* Do not use a multi-byte char as path separator. */
47 ! && (!has_mbyte || (*mb_head_off)(fname, p) == 0)
49 ! ) || STRLEN(fname) >= MAXPATHL)
51 ! filemess(curbuf, fname, (char_u *)_("Illegal file name"), 0);
53 ! msg_scroll = msg_save;
59 *** ../vim-6.3.020/src/version.c Tue Aug 31 20:06:01 2004
60 --- src/version.c Sat Sep 4 16:04:00 2004
64 { /* Add new patch number below this line */
70 An extraordinary TALL KNIGHT in all black (possibly John with Mike on his
71 shoulders) walks out from the dark trees. He is extremely fierce and
72 gruesome countenance. He walks towards KING ARTHUR and PATSY, who are
73 wazzing like mad. (Salopian slang, meaning very scared. almost to the
74 point of wetting oneself, e.g. before an important football match or
75 prior to a postering. Salopian slang meaning a beating by the school
76 praeposters. Sorry about the Salopian slant to this stage direction - Ed.)
77 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
79 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
80 /// Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
81 \\\ Project leader for A-A-P -- http://www.A-A-P.org ///
82 \\\ Buy at Amazon and help AIDS victims -- http://ICCF.nl/click1.html ///