Mercurial > emacs
diff src/xterm.c @ 38280:f546577bb4e9
(x_produce_glyphs): Don't convert multibyte characters
to unibyte characters in unibyte buffers.
| author | Gerd Moellmann <gerd@gnu.org> |
|---|---|
| date | Wed, 04 Jul 2001 07:42:17 +0000 |
| parents | 9ec233999747 |
| children | 293a8b219972 |
line wrap: on
line diff
--- a/src/xterm.c Wed Jul 04 07:21:27 2001 +0000 +++ b/src/xterm.c Wed Jul 04 07:42:17 2001 +0000 @@ -1817,8 +1817,7 @@ struct glyph because the character code itself tells if or not the character is multibyte. Thus, in the future, we must consider eliminating the field `multibyte_p' in the struct - glyph. - */ + glyph. */ int saved_multibyte_p = it->multibyte_p; /* Maybe translate single-byte characters to multibyte, or the @@ -1839,8 +1838,7 @@ else if (!SINGLE_BYTE_CHAR_P (it->c) && !it->multibyte_p) { - it->char_to_display = multibyte_char_to_unibyte (it->c, Qnil); - it->multibyte_p = 0; + it->multibyte_p = 1; it->face_id = FACE_FOR_CHAR (it->f, face, it->char_to_display); face = FACE_FROM_ID (it->f, it->face_id); }
