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.

Full log


View this message in rfc822 format

From: bojohan <at> gnu.org
To: 5799 <at> debbugs.gnu.org
Subject: bug#5799: 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.





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

Previous Next


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