2 Subject: patch 7.1.008 (correction
4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
10 Oops, forgot the src/version.c change.
13 Problem: getfsize() returns a negative number for very big files.
14 Solution: Check for overflow and return -2.
15 Files: runtime/doc/eval.txt, src/eval.c
18 *** ../vim-7.1.007/runtime/doc/eval.txt Sat May 12 16:38:23 2007
19 --- runtime/doc/eval.txt Sat Jun 9 15:48:40 2007
22 ! *eval.txt* For Vim version 7.1. Last change: 2007 May 11
25 VIM REFERENCE MANUAL by Bram Moolenaar
27 ! *eval.txt* For Vim version 7.1. Last change: 2007 Jun 09
30 VIM REFERENCE MANUAL by Bram Moolenaar
35 If {fname} is a directory, 0 is returned.
36 If the file {fname} can't be found, -1 is returned.
37 + If the size of {fname} is too big to fit in a Number then -2
40 getfontname([{name}]) *getfontname()*
41 Without an argument returns the name of the normal font being
42 *** ../vim-7.1.007/src/eval.c Thu May 10 21:30:00 2007
43 --- src/eval.c Sat Jun 9 15:46:46 2007
48 rettv->vval.v_number = 0;
51 rettv->vval.v_number = (varnumber_T)st.st_size;
53 + /* non-perfect check for overflow */
54 + if ((off_t)rettv->vval.v_number != (off_t)st.st_size)
55 + rettv->vval.v_number = -2;
59 rettv->vval.v_number = -1;
60 *** ../vim-7.1.007/src/version.c Tue Jun 19 16:33:53 2007
61 --- src/version.c Tue Jun 19 17:30:50 2007
65 { /* Add new patch number below this line */
72 ZOOT: I'm afraid our life must seem very dull and quiet compared to yours.
73 We are but eightscore young blondes, all between sixteen and
74 nineteen-and-a-half, cut off in this castle, with no one to protect us.
75 Oooh. It is a lonely life ... bathing ... dressing ... undressing ...
76 making exciting underwear....
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 \\\ download, build and distribute -- http://www.A-A-P.org ///
82 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///