lzip-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Lzip-bug] Re: Version 1.11-rc2 of lzip released


From: JonY
Subject: Re: [Lzip-bug] Re: Version 1.11-rc2 of lzip released
Date: Mon, 02 Aug 2010 08:20:59 +0800
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.12) Gecko/20080213 Thunderbird/2.0.0.12 Mnenhy/0.7.5.0

On 8/1/2010 23:02, Antonio Diaz Diaz wrote:
JonY wrote:
According to <http://www.lesstif.org/~amai/os2/html/porting.html>,
setmode looks to be available on OS/2.

Can we agree to use setmode?

I have found that minigzip.c[1] from zlib uses this for Cygwin and OS/2:
setmode(fileno(file), O_BINARY)

[1]http://www.sfr-fresh.com/unix/misc/zlib-1.2.5.tar.gz:a/zlib-1.2.5/minigzip.c

(see line 38).

So I plan to include the following near the beginning of main():
#if defined(OS2) || defined(__CYGWIN__)
setmode( STDIN_FILENO, O_BINARY );
setmode( STDOUT_FILENO, O_BINARY );
#endif

Elbert, JonY, can you check if this works both on Cygwin and OS/2? Thanks.


Hi,

This only applies to the older Cygwin 1.5, I think. Cygwin 1.7 now uses binary IO only, text mode was dropped.

Anyway, Cygwin versions builds and passes the test without any changes. I tested with lzip-1.11-rc3-20100729.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]