From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#3687: 23.1.50; inconsistency in multibyte eight-bit regexps Date: Fri, 26 Jun 2009 16:43:25 +0300 Message-ID: <83my7vyute.fsf@gnu.org> References: <200906260956.n5Q9uo917123@church.math.s.chiba-u.ac.jp> Reply-To: Eli Zaretskii , 3687@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1246024683 30802 80.91.229.12 (26 Jun 2009 13:58:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 26 Jun 2009 13:58:03 +0000 (UTC) To: YAMAMOTO Mitsuharu , 3687@emacsbugs.donarmstrong.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jun 26 15:57:55 2009 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 1MKBw7-0002gg-Gn for geb-bug-gnu-emacs@m.gmane.org; Fri, 26 Jun 2009 15:57:51 +0200 Original-Received: from localhost ([127.0.0.1]:57509 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MKBw7-0007GF-3F for geb-bug-gnu-emacs@m.gmane.org; Fri, 26 Jun 2009 09:57:51 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MKBvo-00070b-RD for bug-gnu-emacs@gnu.org; Fri, 26 Jun 2009 09:57:32 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MKBvj-0006xN-13 for bug-gnu-emacs@gnu.org; Fri, 26 Jun 2009 09:57:31 -0400 Original-Received: from [199.232.76.173] (port=60799 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MKBvi-0006xC-RY for bug-gnu-emacs@gnu.org; Fri, 26 Jun 2009 09:57:26 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:38677) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MKBvh-0006UI-NW for bug-gnu-emacs@gnu.org; Fri, 26 Jun 2009 09:57:26 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n5QDvMF5021404; Fri, 26 Jun 2009 06:57:23 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n5QDo6r1019998; Fri, 26 Jun 2009 06:50:06 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Eli Zaretskii Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Fri, 26 Jun 2009 13:50:06 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 3687 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 3687-submit@emacsbugs.donarmstrong.com id=B3687.124602381718964 (code B ref 3687); Fri, 26 Jun 2009 13:50:06 +0000 Original-Received: (at 3687) by emacsbugs.donarmstrong.com; 26 Jun 2009 13:43:37 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from mtaout5.012.net.il (mtaout5.012.net.il [84.95.2.13]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n5QDhWZk018958 for <3687@emacsbugs.donarmstrong.com>; Fri, 26 Jun 2009 06:43:33 -0700 Original-Received: from conversion-daemon.i_mtaout5.012.net.il by i_mtaout5.012.net.il (HyperSendmail v2004.12) id <0KLU00L00M3H2B00@i_mtaout5.012.net.il> for 3687@emacsbugs.donarmstrong.com; Fri, 26 Jun 2009 16:43:26 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([84.229.213.34]) by i_mtaout5.012.net.il (HyperSendmail v2004.12) with ESMTPA id <0KLU00LMRM4D67R0@i_mtaout5.012.net.il>; Fri, 26 Jun 2009 16:43:25 +0300 (IDT) In-reply-to: <200906260956.n5Q9uo917123@church.math.s.chiba-u.ac.jp> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Fri, 26 Jun 2009 09:57:31 -0400 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:28989 Archived-At: > Date: Fri, 26 Jun 2009 18:56:50 +0900 (JST) > From: YAMAMOTO Mitsuharu > Cc: > > The following results look inconsistent: > > (string-match (string-to-multibyte "\x80") (string-to-multibyte "\x80")) > => 0 > (string-match (string-to-multibyte "\x80") "\x80") > => nil > > (string-match (string-to-multibyte "[\x80]") (string-to-multibyte "\x80")) > => nil > (string-match (string-to-multibyte "[\x80]") "\x80") > => 0 Please tell why you think they are inconsistent. More importantly, please show real-life examples of code or situations where this gets in your way. This area is full of subtleties and gotchas, and in general the current code does what it does because it needs to cater to many different practical situations. There could still be bugs, of course.