all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: bojohan@gnu.org
To: 5799@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	[thread overview]
Message-ID: <87bpe6g8hj.fsf@gnu.org> (raw)


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.







             reply	other threads:[~2010-03-29 20:48 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-29 20:48 bojohan [this message]
2010-03-29 21:43 ` bug#5799: 24.0.50; Case and search problems in unibyte buffers Eli Zaretskii
2011-09-18 20:01 ` Lars Magne Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87bpe6g8hj.fsf@gnu.org \
    --to=bojohan@gnu.org \
    --cc=5799@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.