[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
A bug in skip_chars
From: |
ShengHuo ZHU |
Subject: |
A bug in skip_chars |
Date: |
Fri, 15 Sep 2000 04:57:27 -0400 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) Emacs/21.0.90 |
I found a bug in Emacs 21.0.90. The problem is
(with-temp-buffer
(insert "0123" 223 "ABCD")
(goto-char (point-min))
(skip-chars-forward "^\240-\377")
(point))
Emacs 21.0.90.3 returns 10
Emacs 20.7.1 returns 5
By investigating the code of skip_chars, the problem is
unibyte_char_to_multibyte converts "^\240-\377" to latin-iso8859-1
characters instead of eight-bit-graphic, therefore the
eight-bit-graphic character is skipped.
ShengHuo
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- A bug in skip_chars,
ShengHuo ZHU <=