all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#5799: 24.0.50; Case and search problems in unibyte buffers
@ 2010-03-29 20:48 bojohan
  2010-03-29 21:43 ` Eli Zaretskii
  2011-09-18 20:01 ` Lars Magne Ingebrigtsen
  0 siblings, 2 replies; 3+ messages in thread
From: bojohan @ 2010-03-29 20:48 UTC (permalink / raw)
  To: 5799


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.







^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#5799: 24.0.50; Case and search problems in unibyte buffers
  2010-03-29 20:48 bug#5799: 24.0.50; Case and search problems in unibyte buffers bojohan
@ 2010-03-29 21:43 ` Eli Zaretskii
  2011-09-18 20:01 ` Lars Magne Ingebrigtsen
  1 sibling, 0 replies; 3+ messages in thread
From: Eli Zaretskii @ 2010-03-29 21:43 UTC (permalink / raw)
  To: bojohan; +Cc: 5799

> From: bojohan@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.






^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#5799: 24.0.50; Case and search problems in unibyte buffers
  2010-03-29 20:48 bug#5799: 24.0.50; Case and search problems in unibyte buffers bojohan
  2010-03-29 21:43 ` Eli Zaretskii
@ 2011-09-18 20:01 ` Lars Magne Ingebrigtsen
  1 sibling, 0 replies; 3+ messages in thread
From: Lars Magne Ingebrigtsen @ 2011-09-18 20:01 UTC (permalink / raw)
  To: bojohan; +Cc: rasmith, 5799

bojohan@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/





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-09-18 20:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-29 20:48 bug#5799: 24.0.50; Case and search problems in unibyte buffers bojohan
2010-03-29 21:43 ` Eli Zaretskii
2011-09-18 20:01 ` Lars Magne Ingebrigtsen

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.