Dear Bug Team!
I noticed the following problem: If a buffer contains non-ascii
characters like German umlauts, e.g. ä, or french accented characters,
like è, re-search-forward fails to find regular expressions starting
with "\=". Here is a description how to reproduce the problem:
1. Define a function
(defun my-find-regexp ()
(interactive)
(message (if (re-search-forward "\\=foo[0-9]" nil t) "Yes" "No")))
2. Create a new buffer and insert the following text:
DEMO FILE START
foo1
ä
foo2
DEMO FILE END
3. Place the point at the beginning of "foo1" and type
M-x my-find-regexp RET
The message "Yes" occurs in the minibuffer, indicating that the
regular expression matched.
4. Place the point at the beginning of "foo2" and type
M-x my-find-regexp RET
The message "No" occurs in the minibuffer, indicating that the
regular expression did _not_ match, though to should have matched.
The problem seems to be related to Mule, since I noticed it on Mule
XEmacen only.
System information: XEmacs 21.4.21 on Ubuntu 8.10, x86 (please find more
detailed information in the attached file).
Best regards,
Tilman Rassy
|