From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: don@donarmstrong.com (Emacs bug Tracking System) Newsgroups: gmane.emacs.bugs Subject: bug#678: marked as done (regexp problem in ldap.el) Date: Tue, 12 Aug 2008 11:50:08 -0700 Message-ID: References: <8763q6vzwj.fsf@stupidchicken.com> <1820-Sat09Aug2008170612+0900-manakagawa@manakagawa-debian2.asiapacific.hpqcorp.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----------=_1218567007-19531-0" X-Trace: ger.gmane.org 1218568133 14774 80.91.229.12 (12 Aug 2008 19:08:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 12 Aug 2008 19:08:53 +0000 (UTC) To: Chong Yidong Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Aug 12 21:09:44 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KSzFS-0000iD-It for geb-bug-gnu-emacs@m.gmane.org; Tue, 12 Aug 2008 21:09:39 +0200 Original-Received: from localhost ([127.0.0.1]:44383 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KSzEW-0001NV-CB for geb-bug-gnu-emacs@m.gmane.org; Tue, 12 Aug 2008 15:08:40 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KSzDY-00012g-Gj for bug-gnu-emacs@gnu.org; Tue, 12 Aug 2008 15:07:40 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KSzDV-00010V-8o for bug-gnu-emacs@gnu.org; Tue, 12 Aug 2008 15:07:39 -0400 Original-Received: from [199.232.76.173] (port=48318 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KSzDT-0000zv-KM for bug-gnu-emacs@gnu.org; Tue, 12 Aug 2008 15:07:35 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:46248) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KSzDS-0000cN-Ek for bug-gnu-emacs@gnu.org; Tue, 12 Aug 2008 15:07:35 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m7CJ7OsB025944; Tue, 12 Aug 2008 12:07:29 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m7CIo809019661; Tue, 12 Aug 2008 11:50:08 -0700 X-Mailer: MIME-tools 5.420 (Entity 5.420) X-Loop: don@donarmstrong.com X-Emacs-PR-Message: closed 678 X-Emacs-PR-Package: emacs X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:19331 Archived-At: This is a multi-part message in MIME format... ------------=_1218567007-19531-0 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Your message dated Tue, 12 Aug 2008 14:42:04 -0400 with message-id <8763q6vzwj.fsf@stupidchicken.com> and subject line Re: regexp problem in ldap.el has caused the Emacs bug report #678, regarding regexp problem in ldap.el to be marked as done. This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact don@donarmstrong.com immediately.) --=20 678: http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=3D678 Emacs Bug Tracking System Contact don@donarmstrong.com with problems ------------=_1218567007-19531-0 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=0.0 required=4.0 tests=BAYES_50,MURPHY_DRUGS_REL8, RCVD_IN_DNSWL_LOW autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 9 Aug 2008 08:07:56 +0000 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m7987qtt017702 for ; Sat, 9 Aug 2008 01:07:54 -0700 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KRjUO-0007wK-2h for bug-gnu-emacs@gnu.org; Sat, 09 Aug 2008 04:07:52 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KRjUL-0007sD-QV for bug-gnu-emacs@gnu.org; Sat, 09 Aug 2008 04:07:51 -0400 Received: from [199.232.76.173] (port=60620 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KRjUL-0007rz-Mt for bug-gnu-emacs@gnu.org; Sat, 09 Aug 2008 04:07:49 -0400 Received: from g4t0014.houston.hp.com ([15.201.24.17]:39017) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KRjUL-0003zo-4k for bug-gnu-emacs@gnu.org; Sat, 09 Aug 2008 04:07:49 -0400 Received: from g5t0029.atlanta.hp.com (g5t0029.atlanta.hp.com [16.228.8.141]) by g4t0014.houston.hp.com (Postfix) with ESMTP id BB2F424476 for ; Sat, 9 Aug 2008 08:07:46 +0000 (UTC) Received: from manakagawa-debian.asiapacific.hpqcorp.net (unknown [16.148.54.249]) by g5t0029.atlanta.hp.com (Postfix) with ESMTP id 921BA10158 for ; Sat, 9 Aug 2008 08:06:18 +0000 (UTC) Received: from manakagawa-debian2.asiapacific.hpqcorp.net ([16.148.54.248]) by manakagawa-debian.asiapacific.hpqcorp.net with esmtp (Exim 4.63) (envelope-from ) id 1KRjSq-00040h-4u; Sat, 09 Aug 2008 17:06:16 +0900 Date: Sat, 9 Aug 2008 17:06:12 +0900 Message-ID: <1820-Sat09Aug2008170612+0900-manakagawa@manakagawa-debian2.asiapacific.hpqcorp.net> References: <4518-Fri07Dec2007154442+0900-manakagawa@manakagawa-debian2.asiapacific.hpqcorp.net> To: "bug-gnu-emacs@gnu.org" In-reply-to: =?ISO-2022-JP?B?GyRCQ2ZAbhsoQiAbJEJAPxsoQidz?= message of "Fri, 7 Dec 2007 06:44:42 +0000" <4518-Fri07Dec2007154442+0900-manakagawa@manakagawa-debian2.asiapacific.hpqcorp.net> Subject: Re: regexp problem in ldap.el From: manakagawa@manakagawa-debian2.asiapacific.hpqcorp.net (=?ISO-2022-JP?B?GyRCQ2ZAbhsoQiAbJEJAPxsoQg==?=) Reply-To: Makoto.Nakagawa@hp.com (=?ISO-2022-JP?B?GyRCQ2ZAbhsoQiA=?= =?ISO-2022-JP?B?GyRCQD8bKEI=?=) User-Agent: cmail/2.62 (via feedmail 11-beta-1 I) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (=?ISO-8859-4?Q?Shij=F2?=) APEL/10.6 Emacs/21.4 (i486-pc-linux-gnu) MULE/5.0 (SAKAKI) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: multipart/signed; boundary="pgp-sign-Multipart_Sat_Aug__9_17:06:12_2008-1"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) --pgp-sign-Multipart_Sat_Aug__9_17:06:12_2008-1 Content-Type: multipart/mixed; boundary="Multipart_Sat_Aug__9_17:06:12_2008-1" --Multipart_Sat_Aug__9_17:06:12_2008-1 Content-Type: text/plain; charset=ISO-2022-JP Hi, According to the rfc4512, \w is not good to match aginst attribuite type and options. Wtith the attached patch, options containing hyphens are sucessfully parsed. P.S. I submitted a bug report about regexp in ldap-search-internal last December, but it was a mistake. -- /*** Hewlett-Packard Japan, Ltd. ***/ /*** Consulting & Integration ***/ /*** PC-CW-SOL#1 Professional Center ***/ /*** Nakagawa, Makoto(中川 誠) 050 3158 4747 (Dial-In) ***/ /*** PGP: 0B33 EAC3 F2F6 3D10 D9E9 AE7F 8EDA 44F9 1D29 D44A ***/ --Multipart_Sat_Aug__9_17:06:12_2008-1 Content-Type: application/octet-stream; type=patch Content-Transfer-Encoding: 7bit --- ldap.orig.el 2008-08-09 08:04:07.000000000 +0900 +++ ldap.el 2008-08-09 08:04:20.000000000 +0900 @@ -582,9 +582,9 @@ (end-of-line) (point)))) (forward-line 1) - (while (looking-at "^\\(\\w*\\)\\(;\\w*\\)?[=:\t ]+\\(<[\t ]*file://\\)\\(.*\\)$") + (while (looking-at "^\\([A-Za-z][-A-Za-z0-9]*\\|[0-9]\\(\\.[0-9]\\)*\\)\\(;[-A-Za-z0-9]*\\)?[=:\t ]+\\(<[\t ]*file://\\)\\(.*\\)$") (setq name (match-string 1) - value (match-string 4)) + value (match-string 5)) ;; Need to handle file:///D:/... as generated by OpenLDAP ;; on DOS/Windows as local files. (if (and (memq system-type '(windows-nt ms-dos)) --Multipart_Sat_Aug__9_17:06:12_2008-1-- --pgp-sign-Multipart_Sat_Aug__9_17:06:12_2008-1 Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iQCVAwUASJ1P9wdij9ktsB7pAQI/HAP8D4V/GVnzlqrPsooMBuZyZbRyeFOfSOyP 9K+LmaLwcepQW4ycXtYa9SI8a1wuLqz3H/fjecoAo0lXOUDsUVrcuTNOPP8Jksxh aHCn6jBXyPkqgo9xBaA8PMsmdgQzuqCw/F3eKpeNnlUciTW2HHIsQoIkT5U2ECOe 1kxxZDuc+JM= =Ec42 -----END PGP SIGNATURE----- --pgp-sign-Multipart_Sat_Aug__9_17:06:12_2008-1-- ------------=_1218567007-19531-0 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-3.4 required=4.0 tests=AWL,BAYES_00, MURPHY_DRUGS_REL8 autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 678-done) by emacsbugs.donarmstrong.com; 12 Aug 2008 18:41:37 +0000 Received: from cyd (CYD.MIT.EDU [18.115.2.24]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m7CIfYn8017583 for <678-done@emacsbugs.donarmstrong.com>; Tue, 12 Aug 2008 11:41:35 -0700 Received: by cyd (Postfix, from userid 1000) id 62C6057E2EC; Tue, 12 Aug 2008 14:42:04 -0400 (EDT) From: Chong Yidong To: manakagawa@manakagawa-debian2.asiapacific.hpqcorp.net Cc: 678-done@emacsbugs.donarmstrong.com, gha03025@nifty.ne.jp Subject: Re: regexp problem in ldap.el Date: Tue, 12 Aug 2008 14:42:04 -0400 Message-ID: <8763q6vzwj.fsf@stupidchicken.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii > According to the rfc4512, \w is not good to match against attribute > type and options. With the attached patch, options containing hyphens > are successfully parsed. I've checked in a slightly altered version of your patch into CVS. Thanks very much. ------------=_1218567007-19531-0--