diff options
| author | Kenichi Handa | 2008-12-03 05:54:27 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2008-12-03 05:54:27 +0000 |
| commit | e500c47d647f817257023a712cdc5e6f7bcdf0cb (patch) | |
| tree | 4e0638feda682348ee8779bbdac67a6b487b8d1a | |
| parent | ca5163348949555ec000406115e10381fdcdc9a8 (diff) | |
| download | emacs-e500c47d647f817257023a712cdc5e6f7bcdf0cb.tar.gz emacs-e500c47d647f817257023a712cdc5e6f7bcdf0cb.zip | |
(font_at): Set `multibyte' at first.
| -rw-r--r-- | src/ChangeLog | 2 | ||||
| -rw-r--r-- | src/font.c | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index c71996f4613..48448c3b95c 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,7 @@ | |||
| 1 | 2008-12-03 Kenichi Handa <handa@m17n.org> | 1 | 2008-12-03 Kenichi Handa <handa@m17n.org> |
| 2 | 2 | ||
| 3 | * font.c (font_at): Set `multibyte' at first. | ||
| 4 | |||
| 3 | * coding.c (decode_coding_charset): Check type of an element of | 5 | * coding.c (decode_coding_charset): Check type of an element of |
| 4 | vector VALIDS. | 6 | vector VALIDS. |
| 5 | 7 | ||
diff --git a/src/font.c b/src/font.c index 41dc9e61626..0267ade1c4b 100644 --- a/src/font.c +++ b/src/font.c | |||
| @@ -3622,11 +3622,13 @@ font_at (c, pos, face, w, string) | |||
| 3622 | int multibyte; | 3622 | int multibyte; |
| 3623 | Lisp_Object font_object; | 3623 | Lisp_Object font_object; |
| 3624 | 3624 | ||
| 3625 | multibyte = (NILP (string) | ||
| 3626 | ? ! NILP (current_buffer->enable_multibyte_characters) | ||
| 3627 | : STRING_MULTIBYTE (string)); | ||
| 3625 | if (c < 0) | 3628 | if (c < 0) |
| 3626 | { | 3629 | { |
| 3627 | if (NILP (string)) | 3630 | if (NILP (string)) |
| 3628 | { | 3631 | { |
| 3629 | multibyte = ! NILP (current_buffer->enable_multibyte_characters); | ||
| 3630 | if (multibyte) | 3632 | if (multibyte) |
| 3631 | { | 3633 | { |
| 3632 | EMACS_INT pos_byte = CHAR_TO_BYTE (pos); | 3634 | EMACS_INT pos_byte = CHAR_TO_BYTE (pos); |