delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2005/01/05/08:28:07

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 <giva AT bgnett DOT no>
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
X-Priority: 3
X-MSMail-priority: Normal
References: <Pine DOT GSO DOT 4 DOT 31L2A DOT 0501052037160 DOT 28985-100000 AT mail>
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019