delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/10/29/08:14:43

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 AT alumni DOT princeton DOT edu>
To: cygwin AT cygwin DOT com
Subject: Re: gunzip 1.3.5 error reading from stdin on Cygwin
Cc: zsh-workers AT sunsite DOT dk
MIME-Version: 1.0
X-Google-Sender-Auth: 08e19fffb7e78453
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

(added cc: to zsh-workers.  The original message can be found at
http://www.mail-archive.com/cygwin AT cygwin DOT 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/

- Raw text -


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