From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Christopher J. Madsen" Newsgroups: gmane.emacs.bugs Subject: bug#4209: 23.1; Emacs 23.1 regression in re-search-forward Date: 20 Aug 2009 00:50:33 -0000 Message-ID: <20090820005033.20130.qmail@cjmweb.net> Reply-To: "Christopher J. Madsen" , 4209@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1250803226 12261 80.91.229.12 (20 Aug 2009 21:20:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 20 Aug 2009 21:20:26 +0000 (UTC) Cc: cjm@byte.mynet To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Aug 20 23:20:19 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 1MeF3P-0008Ev-9R for geb-bug-gnu-emacs@m.gmane.org; Thu, 20 Aug 2009 23:20:15 +0200 Original-Received: from localhost ([127.0.0.1]:41892 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MeF3O-0007o4-IO for geb-bug-gnu-emacs@m.gmane.org; Thu, 20 Aug 2009 17:20:14 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MeF3K-0007nl-8T for bug-gnu-emacs@gnu.org; Thu, 20 Aug 2009 17:20:10 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MeF3E-0007nP-LL for bug-gnu-emacs@gnu.org; Thu, 20 Aug 2009 17:20:08 -0400 Original-Received: from [199.232.76.173] (port=58790 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MeF3E-0007nM-Fa for bug-gnu-emacs@gnu.org; Thu, 20 Aug 2009 17:20:04 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:52315) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MeF3E-0007El-0i for bug-gnu-emacs@gnu.org; Thu, 20 Aug 2009 17:20:04 -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 n7KKkpom019227; Thu, 20 Aug 2009 13:48:06 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n7KKZ6Dw016943; Thu, 20 Aug 2009 13:35:06 -0700 Resent-Date: Thu, 20 Aug 2009 13:35:06 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: "Christopher J. Madsen" Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Thu, 20 Aug 2009 20:35:06 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: report 4209 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.125072945327952 (code B ref -1); Thu, 20 Aug 2009 20:35:06 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 20 Aug 2009 00:50:53 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n7K0opM1027949 for ; Wed, 19 Aug 2009 17:50:52 -0700 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mdvrf-0004up-BF for bug-gnu-emacs@gnu.org; Wed, 19 Aug 2009 20:50:51 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MdvrT-0004oJ-GW for bug-gnu-emacs@gnu.org; Wed, 19 Aug 2009 20:50:50 -0400 Original-Received: from [199.232.76.173] (port=40784 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MdvrT-0004o8-CS for bug-gnu-emacs@gnu.org; Wed, 19 Aug 2009 20:50:39 -0400 Original-Received: from a-pb-sasl-quonix.pobox.com ([208.72.237.25]:45466 helo=sasl.smtp.pobox.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MdvrS-0005dR-IO for bug-gnu-emacs@gnu.org; Wed, 19 Aug 2009 20:50:38 -0400 Original-Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id CC2BD11C6B for ; Wed, 19 Aug 2009 20:50:34 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=date :message-id:from:to:subject:cc; s=sasl; bh=adqyjWsJvcQIFLouJFFYQ hnynow=; b=lIh27mKD+WAhosgEP5TZXDOGjPkL0odQ3/acOXYVjKUDieGAt3MVq iqGxerKUNES2TxxEsXssZBx5ZsanrgKmoZJYLHFgvAPU+XwlPuC7n4y+0fy5yVcJ kVKik1ElJMI0YqMKd1xXuY5PtQNm18xW+k55CLjzxCoEDTwAgEHavU= Original-Received: from a-pb-sasl-quonix. (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id C96F511C6A for ; Wed, 19 Aug 2009 20:50:34 -0400 (EDT) Original-Received: from orthanc.cjmweb.net (unknown [66.25.11.176]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTPSA id 85CE411C69 for ; Wed, 19 Aug 2009 20:50:34 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=cjmweb.net; h=date:message-id:from:to:subject:cc; s=y09; bh=N0eyk53kbSSZH6JKBtrGJ8YhjAJVT4JGPoF0ME+T/Go=; b=b1FDDuuiIcISF56XvhExA5WIV6wtDhsV7QE3kUshjFdz0ukFfH1B2LYyTnEi+ycyfyV3DWMXmyHVJiRaeEE4KEq6nal7/k84AtyUqBa8/PYK/JHcK/KC1/Y8lbDlSMMHHtolRUVEvydck5cXByCyFbP2/LvPkyw3c5xs870BqOI= Original-Received: (qmail 20131 invoked by uid 1000); 20 Aug 2009 00:50:33 -0000 X-Pobox-Relay-ID: 78364594-8D23-11DE-833E-CA0F1FFB4A78-09214675!a-pb-sasl-quonix.pobox.com X-detected-operating-system: by monty-python.gnu.org: Solaris 10 (beta) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Thu, 20 Aug 2009 17:20:08 -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:30376 Archived-At: I've found a regression in Emacs 23.1 (versus Emacs 22.3). I've narrowed it down to this test case: ;--- re-bug.el starts here (set-buffer (get-buffer-create "*Test Buffer*")) (insert "\xC2\x4C\xEF\x77\xC6\x69\x8C\x0A") (goto-char (point-min)) (message "looking-at: %s" (looking-at "\\`\xC2\x4C\xEF\x77\xC6\x69\x8C\x0A")) (message "re-search-forward: %s" (re-search-forward "\\`\xC2\x4C\xEF\x77\xC6\x69\x8C\x0A" 100 t)) ;--- re-bug.el ends here Then at the command line: $ emacs-22 --batch -Q -l re-bug.el looking-at: t re-search-forward: 9 $ emacs-23 --batch -Q -l re-bug.el looking-at: t re-search-forward: nil As you can see, looking-at succeeds in both versions, but re-search-forward fails in Emacs 23. I don't know why. It seems like the functions should either both succeed or both fail. For comparison, here's the version of Emacs 22 that I'm using: GNU Emacs 22.3.1 (i686-pc-linux-gnu, GTK+ Version 2.12.11) of 2009-04-06 on byte Windowing system distributor `The X.Org Foundation', version 11.0.10503000 configured using `configure '--prefix=/usr' '--host=i686-pc-linux-gnu' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--datadir=/usr/share' '--sysconfdir=/etc' '--localstatedir=/var/lib' '--program-suffix=-emacs-22' '--infodir=/usr/share/info/emacs-22' '--without-carbon' '--with-sound' '--with-x' '--with-toolkit-scroll-bars' '--with-jpeg' '--with-tiff' '--with-gif' '--with-png' '--with-xpm' '--with-x-toolkit=gtk' '--without-hesiod' '--without-kerberos' '--without-kerberos5' '--build=i686-pc-linux-gnu' 'build_alias=i686-pc-linux-gnu' 'host_alias=i686-pc-linux-gnu' 'CFLAGS=-march=prescott -O2 -pipe' 'LDFLAGS=-Wl,-O1'' And this is the Emacs 23 information: In GNU Emacs 23.1.1 (i686-pc-linux-gnu, GTK+ Version 2.16.5) of 2009-08-10 on byte Windowing system distributor `The X.Org Foundation', version 11.0.10503000 configured using `configure '--prefix=/usr' '--host=i686-pc-linux-gnu' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--datadir=/usr/share' '--sysconfdir=/etc' '--localstatedir=/var/lib' '--program-suffix=-emacs-23' '--infodir=/usr/share/info/emacs-23' '--with-sound' '--with-x' '--with-toolkit-scroll-bars' '--with-gif' '--with-jpeg' '--with-png' '--with-rsvg' '--with-tiff' '--with-xpm' '--without-xft' '--without-libotf' '--without-m17n-flt' '--with-x-toolkit=gtk' '--without-hesiod' '--without-kerberos' '--without-kerberos5' '--with-gpm' '--with-dbus' '--build=i686-pc-linux-gnu' 'build_alias=i686-pc-linux-gnu' 'host_alias=i686-pc-linux-gnu' 'CFLAGS=-march=core2 -O2 -pipe' 'LDFLAGS=-Wl,-O1'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US.utf8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default-enable-multibyte-characters: t Major mode: Fundamental