X-Spam-Check-By: sourceware.org
Message-ID: <20a807210610290514k7f17abdfja21c611b45ff468b@mail.gmail.com>
Date: Sun, 29 Oct 2006 08:14:27 -0500
From: "Vin Shelton" <acs@alumni.princeton.edu>
To: cygwin@cygwin.com
Subject: Re: gunzip 1.3.5 error reading from stdin on Cygwin
Cc: zsh-workers@sunsite.dk
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
X-Google-Sender-Auth: 08e19fffb7e78453
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
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

(added cc: to zsh-workers.  The original message can be found at
http://www.mail-archive.com/cygwin@cygwin.com/msg73620.html )

Vin Shelton wrote:
> After upgrading my system this morning, I'm getting an error running
> gunzip when it reads from stdin.
>
> Steps to reproduce:
>
>     wget ftp://ftp.gnu.org/gmp/gmp-4.2.1.tar.gz
>     gunzip < gmp-4.2.1.tar.gz >/dev/null
>
> This sequence yields the following errors:
>
>     gunzip: stdin: invalid compressed data--crc error
>
>     gunzip: stdin: invalid compressed data--length error
>
>
> Interestingly,
>
>     gunzip gmp-4.2.1.tar.gz
>
> works.

I've narrowed this down a little bit.  It only happens under zsh;
under bash, the recipe works without error.  Thinkging that for some
reason, stdin was being opened in a text mode, I tried setting
CYGWIN=binmode before starting zsh, but that had no effect on this
problem.

I believe the upgrade that broke this was the most recent
gettext/libintl upgrade.  In order to link against the most recent
libintl, I have rebuilt zsh from source (both from the cygwin source
tarball and also from the latest zsh sources in CVS), but still the
problem persists.

I would appreciate any help that can be offered.

Thanks,
  Vin

-- 
The Journey by Mary Oliver
http://www.poemhunter.com/p/m/poem.asp?poet=6771&poem=30506

--
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/

