Currently, joe's internals use "long"s for file
offsets, which prevents files over 2gb from being
loaded correctly on 32-bit platforms. This patch
converts then to off_t, and also adjusts any printf or
scanf specifiers to use %lld instead of %ld. This
isn't strictly the right way to do it, but an off_t
happens to be the same size as a long long when large
files are enabled on all the systems I tested on: AIX
(32&64-bit), Cygwin, FreeBSD, Linux, Solaris
(32&64-bit), and Tru64.
You may think "why in the world would he want to edit a
file larger than 2gb", but they do exist, and with a
fast enough raid array, it's very useable. You can
also use joe as a poor-man's disk editor if you switch
to hex mode and use the "filename,offset,length" syntax
to edit small parts of a large disk.
Log in to post a comment.