Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 39360 invoked from network); 4 Aug 2009 09:09:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 4 Aug 2009 09:09:56 -0000 Received: (qmail 9314 invoked by uid 500); 4 Aug 2009 09:10:01 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 9229 invoked by uid 500); 4 Aug 2009 09:10:01 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Delivered-To: moderator for dev@couchdb.apache.org Received: (qmail 78432 invoked by uid 99); 3 Aug 2009 19:50:47 -0000 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) X-Virus-Scanned: amavisd-new at oregonstate.edu Date: Mon, 3 Aug 2009 12:50:11 -0700 From: Gordon Stratton To: dev@couchdb.apache.org Subject: Re: [jira] Updated: (COUCHDB-245) Couch uses the erlang stdlib module regexp, which is deprecated and set to be removed. It should use the module re instead. Message-ID: <20090803195011.GR2567@3oh1.uhds.oregonstate.edu> Mail-Followup-To: dev@couchdb.apache.org References: <1679304423.1249321275500.JavaMail.jira@brutus> <76A7FE58-8FDB-4F8A-9CC0-FB308750EA46@apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.18 (2008-05-17) X-Virus-Checked: Checked by ClamAV on apache.org Are we talking about its inclusion or whether it is stable in R12B? Here is my Debian Lenny system with stock erlang (R12B-3): -- Erlang (BEAM) emulator version 5.6.3 [source] [64-bit] [smp:4] [async-threads:0] [kernel-poll:false] Eshell V5.6.3 (abort with ^G) 1> Foo = "Hello World! 122.42". "Hello World! 122.42" 2> re:compile("[0-9].[0-9]"). {ok,{re_pattern,0,0, <<69,82,67,80,122,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, ...>>}} 3> -- In the readme[1] for the version I'm running, OTP-7181 indicates it is introduced (experimentally at least?) in that version. [1] http://www.erlang.org/download/otp_src_R12B-3.readme Adam Kocoloski wrote: > Wow, I didn't realize re.erl was only really available in R13B. I > figured for new code I ought to not be using the regexp module, but this > gives me pause. > > Adam > > On Aug 3, 2009, at 3:29 PM, Damien Katz wrote: > >> Switching from regexp to re mean we can't support Erlang R12, but I'm >> not sure if we do right now anyway. >> >> -Damien >> >> On Aug 3, 2009, at 1:41 PM, Jan Lehnardt (JIRA) wrote: >> >>> >>> [ >>> https://issues.apache.org/jira/browse/COUCHDB-245?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel >>> ] >>> >>> Jan Lehnardt updated COUCHDB-245: >>> --------------------------------- >>> >>> Priority: Blocker (was: Minor) >>> >>>> Couch uses the erlang stdlib module regexp, which is deprecated >>>> and set to be removed. It should use the module re instead. >>>> --------------------------------------------------------------------------------------------------------------------------- >>>> >>>> Key: COUCHDB-245 >>>> URL: https://issues.apache.org/jira/browse/COUCHDB-245 >>>> Project: CouchDB >>>> Issue Type: Bug >>>> Components: Infrastructure >>>> Affects Versions: 0.7.2, 0.8, 0.8.1, 0.9 >>>> Environment: regexp is set to be removed from stdlib when >>>> R15 is released. >>>> Reporter: alisdair sullivan >>>> Priority: Blocker >>>> Fix For: 0.10 >>>> >>>> Attachments: couch_mochi_re_patch, couch_re_patch, >>>> couch_re_patch_2 >>>> >>>> Original Estimate: 2h >>>> Remaining Estimate: 2h >>>> >>>> Couch uses the erlang stdlib module regexp, which is deprecated >>>> and set to be removed. It should use the module re instead. re is >>>> not a drop in replacement for regexp, it operates on and returns >>>> binary strings instead of native strings. >>>> Affects files couch_config.erl, couch_config_writer.erl, >>>> couch_httpd.erl, couch_httpd_server.erl, couch_log.erl and >>>> couch_server.erl. >>> >>> -- >>> This message is automatically generated by JIRA. >>> - >>> You can reply to this email to add a comment to the issue online. >>> >>