X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f Date: Wed, 05 Jan 2005 14:27:54 +0100 From: Gisle Vanem Subject: Re: Problem with UNRAR To: djgpp AT delorie DOT com Message-id: <018b01c4f32a$5cfd59e0$0600000a@broadpark.no> MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-Mailer: Microsoft Outlook Express 6.00.2900.2180 Content-type: text/plain; format=flowed; charset=iso-8859-1; reply-type=original Content-transfer-encoding: 7BIT X-Priority: 3 X-MSMail-priority: Normal References: Reply-To: djgpp AT delorie DOT com "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