delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/08/03/12:19:35

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
Message-Id: <5.1.0.14.2.20020803091747.01f99c40@pop3.cris.com>
X-Sender: rrschulz AT pop3 DOT cris DOT com
Date: Sat, 03 Aug 2002 09:20:50 -0700
To: cygwin AT cygwin DOT com
From: Randall R Schulz <rrschulz AT cris DOT com>
Subject: Re: debugging /usr/bin/info reading compressed files
In-Reply-To: <20020803160822.86719.qmail@web20007.mail.yahoo.com>
Mime-Version: 1.0

Joshua,

Gzip / gunzip doesn't handle BZip2-compressed files.

I can think of two alternatives for gixing "info:" Make "info" sensitive to 
the variant compression scheme based on file name suffixes or introduce a 
separate decompression program (script or binary) to handle the variant 
compression formats and have "info" invoke that intermediary instead of 
directly invoking a single-format decompression utility.

Randall Schulz
Mountain View, CA USA



At 09:08 2002-08-03, Joshua Daniel Franklin wrote:
>Hi. The /usr/bin/info program is supposed to be able to automatically
>read compressed files, but this functionality is broken on Cygwin for
>some reason. I've tracked it down to a function in info's filesys.c
>that is failing. The code, with some debugging statements I've added, is:
>
>   stream = popen (command, FOPEN_RBIN);
>     /* FOO */
>     printf("%s\n", command);
>   if (stream)
>     {
>     /* This never gets printed */
>     printf("stream OK\n");
>     }
>     /* end FOO */
>
>The output looks like this:
>$ ./ginfo.exe -f ./gzip.info.bz2
>COMMAND IS:bunzip2.exe < /usr/local/src/texinfo-4.2/info/./gzip.info.bz2
>info: ./gzip.info.bz2: Invalid argument
>
> >From bash, running the command,
>$ bunzip2.exe < /usr/local/src/texinfo-4.2/info/./gzip.info.bz2
>produces the expected file on STDOUT.
>
>As far as I can tell popen() works in Cygwin (it's listed under
>'Other' fuctions in the API Ref), but I have no experience using it.
>Anyone know what needs to be done for this to work?
>
>Attached is some strace output...I deleted about 200 lines of ginfo trying
>to guess the filename, please let me know if more (or less) is needed.
>
>Thanks.


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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