delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/06/08/05:21:13

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
X-Mailer: 21.4 (patch 3) "Academic Rigor" XEmacs Lucid (via feedmail 8 I)
To: cygwin AT cygwin DOT com
Subject: Broken regcomp() in Cygwin ?
X-Face: I-*}xvwusAv%MlABo'jVNP7TDXf5bb*L[q,r{DnsR1GoL07^Wf)sAu%>!LjXAFlZZN+`OQu
}?#du]C)[*%ERKR#+l#sX'EoNbSO~|.x AT ogoS5|"-u?<s5ViLslvYMlj7_n!Tq1m AT xt2Bhj4[Zg+e?
/Yy\SE`V?%v~kRU3GoS1f&U]}
From: "Dr. Volker Zell" <Dr DOT Volker DOT Zell AT oracle DOT com>
Date: 08 Jun 2001 11:21:25 +0200
Message-ID: <kvvgm7l42y.fsf@vzell.de.oracle.com>
Lines: 42
MIME-Version: 1.0

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 ?

Ciao
  Volker


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