Mail Archives: djgpp/2005/01/05/08:28:07
"Dian Yin" wrote:
> Recently, I downloaded source code of UNRAR for linux, and tried to
> compile it under DOS using DJGPP. I extracted the package and run "make".
> However, the UNRAR.EXE I got seems to be incorrect, as it cannot recognize
> any RAR archive. Every time it says: xxxx.rar is not RAR archive.
You forgot about text vs. binary mode perhaps? Open the archive with
fopen (file, "rb") or open (file, O_RDONLY|O_BINARY).
> So I wonder how this comes about. I've also compiled the code in Cygwin,
> and the unrar.exe I got doesn't have such problem.
Cygwin treats all files as binary?
BTW. What's the d/l location of the rar source?
--gv
- Raw text -