GNU bug report logs - #5799
24.0.50; Case and search problems in unibyte buffers

Previous Next

Package: emacs;

Reported by: bojohan <at> gnu.org

Date: Mon, 29 Mar 2010 20:49:02 UTC

Severity: normal

Tags: fixed

Merged with 5797

Fixed in version 24.1

Done: Lars Magne Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 5799 in the body.
You can then email your comments to 5799 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#5799; Package emacs. (Mon, 29 Mar 2010 20:49:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to bojohan <at> gnu.org:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Mon, 29 Mar 2010 20:49:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: bojohan <at> gnu.org
To: bug-gnu-emacs <at> gnu.org
Subject: 24.0.50; Case and search problems in unibyte buffers
Date: Mon, 29 Mar 2010 22:48:08 +0200
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.





Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#5799; Package emacs. (Mon, 29 Mar 2010 21:44:01 GMT) Full text and rfc822 format available.

Message #8 received at 5799 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: bojohan <at> gnu.org
Cc: 5799 <at> debbugs.gnu.org
Subject: Re: bug#5799: 24.0.50; Case and search problems in unibyte buffers
Date: Tue, 30 Mar 2010 00:43:06 +0300
> From: bojohan <at> gnu.org
> Date: Mon, 29 Mar 2010 22:48:08 +0200
> Cc: 
> 
> `downcase' behaves strangely too:
> 
>     (let ((default-enable-multibyte-characters nil))
>       (with-temp-buffer
>         (downcase 255)))
>     => 4194303

This part is by design, I think: see the node "Character Codes" in the
ELisp manual.  4194303 is the internal multibyte representation of the
raw byte 255, part of the eight-bit charset.




Merged 5797 5799. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Wed, 31 Mar 2010 18:01:01 GMT) Full text and rfc822 format available.

Added tag(s) fixed. Request was from Lars Magne Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Sun, 18 Sep 2011 20:10:01 GMT) Full text and rfc822 format available.

bug marked as fixed in version 24.1, send any further explanations to 5799 <at> debbugs.gnu.org and bojohan <at> gnu.org Request was from Lars Magne Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Sun, 18 Sep 2011 20:10:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#5799; Package emacs. (Sun, 18 Sep 2011 20:12:01 GMT) Full text and rfc822 format available.

Message #17 received at 5799 <at> debbugs.gnu.org (full text, mbox):

From: Lars Magne Ingebrigtsen <larsi <at> gnus.org>
To: bojohan <at> gnu.org
Cc: rasmith <at> tamu.edu, 5799 <at> debbugs.gnu.org
Subject: Re: 24.0.50; Case and search problems in unibyte buffers
Date: Sun, 18 Sep 2011 22:01:25 +0200
bojohan <at> gnu.org writes:

> 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"))

I'm no longer able to reproduce this bug, so I think it was fixed by
Andreas' recent fixes in this area.

-- 
(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 17 Oct 2011 11:24:08 GMT) Full text and rfc822 format available.

This bug report was last modified 13 years and 307 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.