From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: bojohan@gnu.org Newsgroups: gmane.emacs.bugs Subject: bug#5799: 24.0.50; Case and search problems in unibyte buffers Date: Mon, 29 Mar 2010 22:48:08 +0200 Message-ID: <87bpe6g8hj.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1269897813 7782 80.91.229.12 (29 Mar 2010 21:23:33 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 29 Mar 2010 21:23:33 +0000 (UTC) To: 5799@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Mar 29 23:23:21 2010 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 1NwMQX-00078q-6e for geb-bug-gnu-emacs@m.gmane.org; Mon, 29 Mar 2010 23:23:17 +0200 Original-Received: from localhost ([127.0.0.1]:50259 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NwMQW-0000Xs-JG for geb-bug-gnu-emacs@m.gmane.org; Mon, 29 Mar 2010 17:23:16 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NwLzm-0001nT-FM for bug-gnu-emacs@gnu.org; Mon, 29 Mar 2010 16:55:38 -0400 Original-Received: from [140.186.70.92] (port=43484 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NwLzl-0001mH-60 for bug-gnu-emacs@gnu.org; Mon, 29 Mar 2010 16:55:38 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NwLzj-000062-O2 for bug-gnu-emacs@gnu.org; Mon, 29 Mar 2010 16:55:37 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:56061) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NwLzj-00005y-MY for bug-gnu-emacs@gnu.org; Mon, 29 Mar 2010 16:55:35 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1NwLtO-000445-Jm; Mon, 29 Mar 2010 16:49:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: bojohan@gnu.org Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 29 Mar 2010 20:49:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 5799 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.126989570415607 (code B ref -1); Mon, 29 Mar 2010 20:49:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 29 Mar 2010 20:48:24 +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 1NwLsl-00043g-O8 for submit@debbugs.gnu.org; Mon, 29 Mar 2010 16:48:24 -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 1NwLsh-00043b-UU for submit@debbugs.gnu.org; Mon, 29 Mar 2010 16:48:20 -0400 Original-Received: from lists.gnu.org ([199.232.76.165]:54198) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NwLsd-0008OO-Ld for submit@debbugs.gnu.org; Mon, 29 Mar 2010 16:48:15 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NwLsd-0003Qv-5O for bug-gnu-emacs@gnu.org; Mon, 29 Mar 2010 16:48:15 -0400 Original-Received: from [140.186.70.92] (port=37900 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NwLsb-0003PZ-RS for bug-gnu-emacs@gnu.org; Mon, 29 Mar 2010 16:48:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NwLsa-0007pz-3p for bug-gnu-emacs@gnu.org; Mon, 29 Mar 2010 16:48:13 -0400 Original-Received: from smtprelay-h21.telenor.se ([195.54.99.196]:40932) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NwLsZ-0007po-55 for bug-gnu-emacs@gnu.org; Mon, 29 Mar 2010 16:48:11 -0400 Original-Received: from ipb2.telenor.se (ipb2.telenor.se [195.54.127.165]) by smtprelay-h21.telenor.se (Postfix) with ESMTP id CD195C466 for ; Mon, 29 Mar 2010 22:48:09 +0200 (CEST) X-SENDER-IP: [85.228.200.127] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: An41ABuvsEtV5Mh/PGdsb2JhbACPOYttDAEBAQE1Lb9MhQEEhh8 X-IronPort-AV: E=Sophos;i="4.51,330,1267398000"; d="scan'208";a="57197883" Original-Received: from c-7fc8e455.04-211-6c6b701.cust.bredbandsbolaget.se (HELO muon.localdomain) ([85.228.200.127]) by ipb2.telenor.se with ESMTP; 29 Mar 2010 22:48:09 +0200 Original-Received: by muon.localdomain (Postfix, from userid 1000) id 4E7A748409C; Mon, 29 Mar 2010 22:48:08 +0200 (CEST) User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 29 Mar 2010 16:49:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Mailman-Approved-At: Mon, 29 Mar 2010 17:15:48 -0400 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:35797 Archived-At: http://lists.gnu.org/archive/html/help-gnu-emacs/2010-03/msg00246.html This correctly finds a \377 character in a unibyte buffer: (let ((case-fold-search nil)) (search-forward "\377")) This fails to match \377 and actually finds \277 instead: (let ((case-fold-search t)) (search-forward "\377")) `downcase' behaves strangely too: (let ((default-enable-multibyte-characters nil)) (with-temp-buffer (downcase 255))) => 4194303 These problems exist in trunk and Emacs 23, and did not occur in Emacs 22.