Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Sun, 4 Aug 2002 15:19:06 -0400 From: Christopher Faylor To: cygwin AT cygwin DOT com Subject: Re: debugging /usr/bin/info reading compressed files Message-ID: <20020804191906.GA12734@redhat.com> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.23.1i On Sun, Aug 04, 2002 at 11:54:59AM -0500, Joshua Daniel Franklin wrote: >I have tracked the reading-compressed-files problem down to the line > > stream = popen (command, FOPEN_RBIN); > >which gets its definition of FOPEN_RBIN from ../lib/system.h. >It is defining FOPEN_RBIN as "rb" instead of just "r", which causes >the popen to fail with "Invalid argument". Setting it explicitly to >"r" works correctly on both binary and text mounts. > >I'm not sure what needs to be done about this, but hopefully the >texinfo package maintainer does. This is a problem in newlib. I've checked in a cygwin-specific patch to fix this in newlib so this change will be fixed in the next snapshot and, eventually, in cygwin-1.3.13. FYI, the newlib patch is described here. http://sources.redhat.com/ml/newlib/2002/msg00378.html >By the way, I'd be willing to take over this package maintainence since >I'm doing a lot of the other doc-related stuff. Thanks but this is pretty much a no-brainer port. It's no big deal to maintain. Btw, I've also uploaded a new version of the gzip package which creates a gunzip.exe link rather than a gunzip (without the exe) link. I needed to do this to get info working correctly with gzipped files after testing my change to newlib. Thanks for tracking this down. cgf -- 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/