Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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? Date: 08 Jun 2001 11:21:25 +0200 Message-ID: Lines: 42 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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