X-Spam-Check-By: sourceware.org
To: cygwin@cygwin.com
From: Eric Blake <ebb9@byu.net>
Subject:  Re: 1.5.24: data corruption problem with popen and gzip on a text =?utf-8?b?CW1vdW50ZWQ=?=  filesystem
Date: Mon, 23 Jul 2007 17:16:26 +0000 (UTC)
Lines: 31
Message-ID:  <loom.20070723T190617-0@post.gmane.org>
References:  <46A4BC14.1050603@merl.com> <loom.20070723T173503-197@post.gmane.org> <20070723170235.GA17283@ednor.casa.cgf.cx>
Mime-Version:  1.0
Content-Type:  text/plain; charset=us-ascii
Content-Transfer-Encoding:  7bit
User-Agent: Loom/3.14 (http://gmane.org/)
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Christopher Faylor <cgf-use-the-mailinglist-please <at> cygwin.com> writes:

> 
> gzip is linked with binmode.o, like most of the things that I maintain
> (i.e., no upstream patch really necessary - isn't that my call?).  If
> I use a really simple test case of just outputting directly to a text
> mode mount, it works fine.

binmode.o to the contrary, there is indeed a problem:

$ cd text
$ ls
$ strace -o traceA /bin/ls > /dev/null
$ cp traceA traceB
$ gzip < traceA > traceA.gz
$ gzip < traceB | cat > traceB.gz
$ ls -l
total 88
-rwxr-xr-x 1 eblake Domain Users 33136 Jul 23 11:12 traceA*
-rw-r--r-- 1 eblake Domain Users  7067 Jul 23 11:12 traceA.gz
-rwxr-xr-x 1 eblake Domain Users 33136 Jul 23 11:12 traceB*
-rw-r--r-- 1 eblake Domain Users  7033 Jul 23 11:12 traceB.gz

traceA.gz has 34 spurious \r characters.

(unrelated: strace build July 20 from CVS is behaving a bit weird; it did not 
want to do a path search when I tried 'strace -o traceA ls')

-- 
Eric Blake



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

