-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Tommi Mäkitalo a écrit :
26 was a good hint. It is interpreted as eof on
windows, when the file is
opened in text mode. Also cr-lf is translated into a single lf, which is also
not correct for reading zim files. I added the O_BINARY-flag to the call to
open.
Yes, this was a/the problem. A pity that I did not though about that
sooner... this is not the first time I invest time on this TEXT read
mode issue on a Windows system :(
Also I removed <unistd.h> from uuid.cpp.
Thanks
For what is io.h needed? Which error message do you
get? Linux don't need it
and can't even find io.h on my linux boxes.
If you remove this #include, read(), open(), close() and also
_lseeki64() will become unknown functions.
Now, I have fixed the last problems under windows. Would be great to
patch also the upstream. You can see the small things I have done here:
http://kiwix.svn.sourceforge.net/viewvc/kiwix?view=rev&revision=1446
I have prepared a self-installer of the windows version of Kiwix (now
100% functional) here:
http://tmp.kiwix.org/tmp/kiwix-install.exe
The source code may be found here:
http://tmp.kiwix.org/src/nightly/kiwix-svn-2010-04-08.tar.bz2
... Compilation under GNU/Linux follows the GNU standard ./configure;
./make; ./make install
Kiwix 0.9 alpha1 will be published soon.
Regards
Emmanuel
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla -
http://enigmail.mozdev.org
iEYEARECAAYFAku+UfAACgkQn3IpJRpNWtOxtQCdEXhfwzRzFV687yv0LZG/nxFW
RBQAn033/PLisC6iuxwM+8lqY8brqFbG
=FhHo
-----END PGP SIGNATURE-----