From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.bugs Subject: bug#8516: nxml-mode: pattern matching should be case-sensitive in validation Date: Sun, 22 May 2011 15:47:06 -0400 Message-ID: <87ei3qwm9x.fsf@stupidchicken.com> References: <87ipucoftf.fsf@raven.defaultvalue.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1306093692 13205 80.91.229.12 (22 May 2011 19:48:12 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 22 May 2011 19:48:12 +0000 (UTC) Cc: 8516@debbugs.gnu.org, Rob Browning To: Yuanle Song Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun May 22 21:48:08 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QOEdD-0000rM-Ga for geb-bug-gnu-emacs@m.gmane.org; Sun, 22 May 2011 21:48:07 +0200 Original-Received: from localhost ([::1]:33321 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QOEdD-0003Rx-0Y for geb-bug-gnu-emacs@m.gmane.org; Sun, 22 May 2011 15:48:07 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:40822) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QOEd8-0003Ro-UR for bug-gnu-emacs@gnu.org; Sun, 22 May 2011 15:48:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QOEd8-0003KG-9Y for bug-gnu-emacs@gnu.org; Sun, 22 May 2011 15:48:02 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:56570) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QOEd8-0003KC-6l for bug-gnu-emacs@gnu.org; Sun, 22 May 2011 15:48:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QOEd7-00019G-Ma; Sun, 22 May 2011 15:48:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Chong Yidong Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 22 May 2011 19:48:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8516 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 8516-submit@debbugs.gnu.org id=B8516.13060936364354 (code B ref 8516); Sun, 22 May 2011 19:48:01 +0000 Original-Received: (at 8516) by debbugs.gnu.org; 22 May 2011 19:47:16 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QOEcN-00018B-0Q for submit@debbugs.gnu.org; Sun, 22 May 2011 15:47:15 -0400 Original-Received: from vm-emlprdomr-03.its.yale.edu ([130.132.50.144]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QOEcK-00017y-QD for 8516@debbugs.gnu.org; Sun, 22 May 2011 15:47:13 -0400 Original-Received: from furball ([64.134.241.242]) (authenticated bits=0) by vm-emlprdomr-03.its.yale.edu (8.14.4/8.14.4) with ESMTP id p4MJl790032378 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sun, 22 May 2011 15:47:07 -0400 Original-Received: by furball (Postfix, from userid 1000) id D9988160554; Sun, 22 May 2011 15:47:06 -0400 (EDT) In-Reply-To: (Yuanle Song's message of "Mon, 18 Apr 2011 05:00:16 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-Scanned-By: MIMEDefang 2.71 on 130.132.50.144 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sun, 22 May 2011 15:48:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:46645 Archived-At: Yuanle Song writes: > I think it's because string-match ignore case when case-fold-search is t > (which is the default), so greped a little on nxml dir and found the > following function may be the problem. But I haven't read the how the > whole file and don't know how nxml validation works, so some one more > knowledgeable should verify this is the right thing to do. > > I tested on the test.xml and test.rnc and after this patch, capitalized > "Test" will result an invalid xml file. Patch looks right to me. Committed to the Emacs repository trunk, thanks.