From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from scc-mailout-kit-02.scc.kit.edu (scc-mailout-kit-02.scc.kit.edu [129.13.231.82]); by fantadrom.bsd.lv (OpenSMTPD) with ESMTP id 75884f11; for ; Fri, 3 Apr 2015 07:53:02 -0500 (EST) Received: from asta-nat.asta.uni-karlsruhe.de ([172.22.63.82] helo=hekate.usta.de) by scc-mailout-kit-02.scc.kit.edu with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (envelope-from ) id 1Ye15n-0007FD-W4; Fri, 03 Apr 2015 14:53:01 +0200 Received: from donnerwolke.usta.de ([172.24.96.3]) by hekate.usta.de with esmtp (Exim 4.77) (envelope-from ) id 1Ye15n-0006CE-QR; Fri, 03 Apr 2015 14:52:59 +0200 Received: from athene.usta.de ([172.24.96.10]) by donnerwolke.usta.de with esmtp (Exim 4.80) (envelope-from ) id 1Ye15n-0002Vw-Kk; Fri, 03 Apr 2015 14:52:59 +0200 Received: from localhost (1031@localhost [local]); by localhost (OpenSMTPD) with ESMTPA id 5b48574c; Fri, 3 Apr 2015 14:52:59 +0200 (CEST) Date: Fri, 3 Apr 2015 14:52:59 +0200 From: Ingo Schwarze To: Peter Bray Cc: discuss@mdocml.bsd.lv Subject: Re: Solaris 10 regcomp() does not handle simple whatis query Message-ID: <20150403125259.GD7421@athene.usta.de> References: <551E8148.7070004@yahoo.com.au> X-Mailinglist: mdocml-discuss Reply-To: discuss@mdocml.bsd.lv MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <551E8148.7070004@yahoo.com.au> User-Agent: Mutt/1.5.23 (2014-03-12) Hi Peter, Peter Bray wrote on Fri, Apr 03, 2015 at 11:02:16PM +1100: > I am having trouble viewing the GMAME web archive of the mailing > list, so please excuse me if this post is a repeat of a known issue. Duplicate reports are better than missing ones, so unless you are completely sure something is known, always speak up. Even dupes are sometimes useful because they help to adjust priorities. > I was investigating mdocml on a Solaris 10 (X86_64) system and > discovered that the latest release does not compile, but the latest > CVS 2015-04-01 does :-) Many thanks to those responsible! You are welcome. That would be me, various people reporting issues, and the friendly folks from OpenCSW who provide testing opportunities on their build cluster. > My testing shows that Solaris 10's regcomp() can not handle the > character class used by mdocml's whatis(1): for example: the query > 'whatis' generates "[[:<:]]whatis[[:>:]]" which gives the error > "regcomp: invalid character class type", as shown below I dimly remember hearing that before, and indeed [[:<:]] is not required by POSIX but a BSD extension. > Depending on the complexity, maybe a BSD version of regcomp() could be > included with mdocml, to get the desired functionality and not have to > reduce the functionality currently available to mdocml users. Bundling a full regular expression library seems a bit much, that code isn't exactly small. > Alternatively, the code could make exceptions for broken (by the > project's standards) regcomp() implementations. Sounds better, i added an entry to the TODO list, see below. Yours, Ingo Log Message: ----------- portability: word boundaries in regular expressions Modified Files: -------------- mdocml: TODO Revision Data ------------- Index: TODO =================================================================== RCS file: /home/cvs/mdocml/mdocml/TODO,v retrieving revision 1.203 retrieving revision 1.204 diff -LTODO -LTODO -u -p -r1.203 -r1.204 --- TODO +++ TODO @@ -488,6 +488,14 @@ are mere guesses, and some may be wrong. loc ** exist ** algo ** size * imp ** ************************************************************************ +* portability +************************************************************************ + +- word boundaries in regular expressions for whatis(1) + set up config tests to use [[:<:]], \<, or nothing + reminded by Peter Bray Fri, 03 Apr 2015 23:02:16 +1100 + +************************************************************************ * warning issues ************************************************************************ -- To unsubscribe send an email to discuss+unsubscribe@mdocml.bsd.lv