delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/06/08/09:42:56

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Date: Fri, 8 Jun 2001 15:42:03 +0200
From: Corinna Vinschen <cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Broken regcomp() in Cygwin ?
Message-ID: <20010608154203.D18483@cygbert.vinschen.de>
Mail-Followup-To: cygwin AT cygwin DOT com
References: <kvvgm7l42y DOT fsf AT vzell DOT de DOT oracle DOT com>
Mime-Version: 1.0
User-Agent: Mutt/1.2.5i
In-Reply-To: <kvvgm7l42y.fsf@vzell.de.oracle.com>; from Dr.Volker.Zell@oracle.com on Fri, Jun 08, 2001 at 11:21:25AM +0200

On Fri, Jun 08, 2001 at 11:21:25AM +0200, Dr. Volker Zell wrote:
> Hi all
> 
> I tried compiling urlview
> 
> [`urlview' is a curses program for extracting URLs from text files and
> displaying a menu from which you can select a specific URL to view using
> your favorite browser program.] (from the author)
> 
>  o urlview-0.9 - ftp://ftp.iij.ad.jp/pub/linux/debian/dists/woody/main/source/misc/
> 
> for use with mutt with the following macro definitions in ~/.muttrc
> macro index \cb |urlview\n
> macro pager \cb |urlview\n
> 
> 
> Configure, make, make install went smoothly.
> But an invocation of urlview with an html file with embedded links brought me back to
> the bash prompt with an exit status of 1. Running it under gdb shows it exits when compiling
> a regexp. Here is the code:
> 
>   /*** compile the regexp ***/
> 
>   if ((i = regcomp (&rx, regexp, REG_EXTENDED | REG_ICASE | REG_NEWLINE)))
>   {
>     regerror (i, &rx, buf, sizeof (buf));
>     regfree (&rx);
>     puts (buf);
>     exit (1);                    <-------- Here it exits
>   }
> 
> The same source compiles and runs fine under linux.
> 
> So I tried compiling it with GNU rx (compiles OOTB)
> 
>  o rx-1.5 - ftp://ftp.gnu.org/pub/gnu/
> 
> This time the resulting urlview works like a charm.
> 
> Is there any regex guru out there who can shed a light on this one ?

Regex in Cygwin is a fairly old implementation. The Cygwin
net distro contains a POSIX compliant regex library, though
Just link against -lregex... which you could have found in
the mailing list archives...

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin AT cygwin DOT com
Red Hat, Inc.

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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