James -
> Since Vim can now open “largefiles†on 32-bit systems, there are some
> changes necessary to properly store/access the size of those files.
> This is easy to see as when you open a largefile, the status message
> showing the number of lines and characters in the file will have a
> negative number of characters for largefiles since the 32-bit long was
> overflowed.
>
> The attached patch (generated against 7d3cf4693a8f) changes the relevant
> buffer size pieces of the code to use off_t instead of long.
> Unfortunately, there isn't a standard way to format off_t for
> printf-style functions, so that required some preprocessor checks for
> what to use. There may be a better way to do that, but it worked for
> me.
>
> I've tested this on Windows with VS Express 2008 and Linux (both 32-bit
> and 64-bit environments).
Thanks! I'll put it on my 7.3 todo list.
- Bram
--
You can't have everything. Where would you put it?
-- Steven Wright
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ download, build and distribute -- http://www.A-A-P.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php