From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Eli Zaretskii" Newsgroups: gmane.emacs.devel Subject: Re: regex and case-fold-search problem Date: Fri, 23 Aug 2002 18:56:25 +0300 Sender: emacs-devel-admin@gnu.org Message-ID: <9003-Fri23Aug2002185625+0300-eliz@is.elta.co.il> References: <200208230625.PAA23426@etlken.m17n.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: localhost.gmane.org X-Trace: main.gmane.org 1030118119 8917 127.0.0.1 (23 Aug 2002 15:55:19 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 23 Aug 2002 15:55:19 +0000 (UTC) Cc: emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17iGmM-0002Ji-00 for ; Fri, 23 Aug 2002 17:55:18 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17iHFn-0006hL-00 for ; Fri, 23 Aug 2002 18:25:43 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17iGnX-0002Gy-00; Fri, 23 Aug 2002 11:56:31 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 17iGlR-00023S-00 for emacs-devel@gnu.org; Fri, 23 Aug 2002 11:54:21 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 17iGlK-00021s-00 for emacs-devel@gnu.org; Fri, 23 Aug 2002 11:54:21 -0400 Original-Received: from freya.inter.net.il ([192.114.186.14]) by monty-python.gnu.org with esmtp (Exim 4.10) id 17iGlJ-00021F-00 for emacs-devel@gnu.org; Fri, 23 Aug 2002 11:54:14 -0400 Original-Received: from Zaretsky ([80.230.2.40]) by freya.inter.net.il (Mirapoint Messaging Server MOS 3.1.0.58-GA) with ESMTP id BRQ53644; Fri, 23 Aug 2002 18:53:54 +0300 (IDT) Original-To: handa@etl.go.jp X-Mailer: emacs 21.3.50 (via feedmail 8 I) and Blat ver 1.8.9 In-Reply-To: <200208230625.PAA23426@etlken.m17n.org> (message from Kenichi Handa on Fri, 23 Aug 2002 15:25:42 +0900 (JST)) Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:6799 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:6799 > From: Kenichi Handa > Date: Fri, 23 Aug 2002 15:25:42 +0900 (JST) > > This problem is not specific to non-ASCII chars, it's just > rarer to face such a sitution in ASCII chars. > > (let ((case-fold-search nil)) > (string-match "[A-_]" "A")) => 0 > (let ((case-fold-search t)) > (string-match "[A-_]" "A")) => nil > (let ((case-fold-search t)) > (string-match "[A_]" "A")) => 0 Does that happen because under case-fold-search non-nil the characters on the range specification are downcased? > In my opinion, specifying ranges by chars are nonsense > because there should be no semantics in the order of > characters codes. Sorry, I don't understand: how would one specify a range _except_ with two characters and a dash between them? What am I missing?