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#5989: 23.1.96; bug 4209 not completely fixed (regression in re-search-forward) Date: Tue, 20 Apr 2010 13:19:21 -0500 Message-ID: <4BCDF029.9040106@cjmweb.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1271788183 28412 80.91.229.12 (20 Apr 2010 18:29:43 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 20 Apr 2010 18:29:43 +0000 (UTC) To: 5989@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Apr 20 20:29:39 2010 connect(): No such file or directory 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.69) (envelope-from ) id 1O4ICZ-0000vT-AQ for geb-bug-gnu-emacs@m.gmane.org; Tue, 20 Apr 2010 20:29:39 +0200 Original-Received: from localhost ([127.0.0.1]:51631 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O4ICY-0001gh-LT for geb-bug-gnu-emacs@m.gmane.org; Tue, 20 Apr 2010 14:29:38 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O4ICH-0001cl-AY for bug-gnu-emacs@gnu.org; Tue, 20 Apr 2010 14:29:21 -0400 Original-Received: from [140.186.70.92] (port=54608 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O4ICF-0001c1-BH for bug-gnu-emacs@gnu.org; Tue, 20 Apr 2010 14:29:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O4ICD-0006wI-9C for bug-gnu-emacs@gnu.org; Tue, 20 Apr 2010 14:29:19 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:35026) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O4ICD-0006wD-6M for bug-gnu-emacs@gnu.org; Tue, 20 Apr 2010 14:29:17 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1O4IA1-0000k0-PH; Tue, 20 Apr 2010 14:27:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Christopher J. Madsen" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 20 Apr 2010 18:27:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 5989 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.12717879872835 (code B ref -1); Tue, 20 Apr 2010 18:27:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 20 Apr 2010 18:26:27 +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 1O4I9S-0000jf-2G for submit@debbugs.gnu.org; Tue, 20 Apr 2010 14:26:27 -0400 Original-Received: from mail.gnu.org ([199.232.76.166] helo=mx10.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O4I2s-0000gD-3E for submit@debbugs.gnu.org; Tue, 20 Apr 2010 14:19:40 -0400 Original-Received: from lists.gnu.org ([199.232.76.165]:58737) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1O4I2n-0001cp-Cw for submit@debbugs.gnu.org; Tue, 20 Apr 2010 14:19:33 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O4I2m-0007g8-W7 for bug-gnu-emacs@gnu.org; Tue, 20 Apr 2010 14:19:33 -0400 Original-Received: from [140.186.70.92] (port=38468 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O4I2k-0007er-Jb for bug-gnu-emacs@gnu.org; Tue, 20 Apr 2010 14:19:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O4I2h-0004Pq-8o for bug-gnu-emacs@gnu.org; Tue, 20 Apr 2010 14:19:30 -0400 Original-Received: from a-pb-sasl-quonix.pobox.com ([208.72.237.25]:38442 helo=sasl.smtp.pobox.com) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O4I2h-0004Ox-50 for bug-gnu-emacs@gnu.org; Tue, 20 Apr 2010 14:19:27 -0400 Original-Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id 1CF02ACD07 for ; Tue, 20 Apr 2010 14:19:24 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=message-id :date:from:mime-version:to:subject:content-type :content-transfer-encoding; s=sasl; bh=Tg0+baYD5cparW0auxvUhQqmt 1Y=; b=QZe/93va+wnzpWQ8a0PdHR5sAPk3KEoxUJjmr7kx1xYskOOJ17fNhPAse yJ7pCNAvSpBUHdFyNQVcy0jZyRSlDAEmHTuTOAgSKpbTnukxU2ylRtJ7KT/6SG46 PS4L/N0/Mobj8Ky1bt0Jwb15nDCoDhiX7lv/nQSY5wKH2R4AZk= Original-Received: from a-pb-sasl-quonix. (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id 191C8ACD06 for ; Tue, 20 Apr 2010 14:19:24 -0400 (EDT) Original-Received: from orthanc.cjmweb.net (unknown [76.184.145.14]) (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 BB735ACD05 for ; Tue, 20 Apr 2010 14:19:23 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=cjmweb.net; h=message-id:date:from:mime-version:to:subject:content-type:content-transfer-encoding; s=y10; bh=g2W7OmGoej3hN+QWSlv52QmjoLkJ4Z1MOlAv1qcjYE4=; b=ii6eYflbIul5cc/TM+syYA9kljcs+ITIb9rc9k1/3HLav8PUdRmE8ocih9pTkqlaReqkEysupgva+Op0b/849VpCAg3kvTj4guSnvtxjvtbEWpHkwDoQzCMBeEYF/xHiCmZU2u/lfq5Y+K+6kYiO0AEUeeVSGF2DnQRdrjVvBbU= Original-Received: (qmail 18341 invoked from network); 20 Apr 2010 18:19:21 -0000 Original-Received: from core.mynet (HELO ?192.168.0.8?) (192.168.0.8) by byte.mynet with SMTP; 20 Apr 2010 18:19:21 -0000 User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) X-Pobox-Relay-ID: 3F5E3FBA-4CA9-11DF-9462-D033EE7EF46B-09214675!a-pb-sasl-quonix.pobox.com X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Mailman-Approved-At: Tue, 20 Apr 2010 14:26:25 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Tue, 20 Apr 2010 14:27:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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: , 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:36376 Archived-At: I've discovered that bug #4209 was only partially fixed. My original recipe does not produce the bug in 23.1.96, but a slightly modified one does: ;--- re-bug2.el starts here (setq-default enable-multibyte-characters nil) ; this line is new (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-bug2.el ends here At the command line, this is the expected output: $ emacs --batch -Q -l re-bug2.el looking-at: t re-search-forward: 9 With emacs 23.1.96, the output I actually get is: looking-at: t re-search-forward: nil This recipe is closer to what I'm actually doing: ;--- re-bug-file.el starts here (find-file-literally "sample.file") (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-file.el ends here It should have the same output as the previous recipe. sample.file must begin with those 8 bytes. The following Perl command can create a suitable file (just redirect its output to sample.file): perl -e 'binmode STDOUT; print "\xC2\x4C\xEF\x77\xC6\x69\x8C\x0Aand more\n"' The original patch proposed by Matthew Dempsky (http://debbugs.gnu.org/cgi/bugreport.cgi?bug=4209#12) appears to fix the bug in all its variations, but the patch that was actually applied by Kenichi Handa only fixes the original recipe. I apologize for not trying the official patch sooner. I just never got around to rebuilding Emacs. In GNU Emacs 23.1.96.4 (i686-pc-linux-gnu) of 2010-04-20 on byte configured using `configure '--without-pop' '--without-sound' '--without-x' '--with-x-toolkit=no' '--without-xpm' '--without-jpeg' '--without-tiff' '--without-gif' '--without-png' '--without-rsvg' '--without-xft' '--without-libotf' '--without-m17n-flt' '--without-toolkit-scroll-bars' '--without-xaw3d' '--without-xim' '--without-gpm' '--without-dbus' '--without-makeinfo'' 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 Minor modes in effect: menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr message sendmail regexp-opt ecomplete rfc822 mml mml-sec password-cache mm-decode mm-bodies mm-encode mailcap mail-parse rfc2231 rfc2047 rfc2045 qp ietf-drums mailabbrev nnheader gnus-util netrc time-date mm-util mail-prsvr gmm-utils wid-edit mailheader canlock sha1 hex-util hashcash mail-utils emacsbug help-mode easymenu view warnings ediff-hook vc-hooks lisp-float-type lisp-mode register page menu-bar rfn-eshadow timer jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev loaddefs button minibuffer faces cus-face files text-properties overlay md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process multi-tty emacs)