]> git.eshelyaron.com Git - emacs.git/commitdiff
(x_produce_glyphs): Don't convert multibyte characters
authorGerd Moellmann <gerd@gnu.org>
Wed, 4 Jul 2001 07:42:36 +0000 (07:42 +0000)
committerGerd Moellmann <gerd@gnu.org>
Wed, 4 Jul 2001 07:42:36 +0000 (07:42 +0000)
to unibyte characters in unibyte buffers.

src/ChangeLog
src/xterm.c

index 034a5617b4d6b920b3316ec8e55629a0d5ea2cc9..73f8dd6d16534d336f7cd7788a7ff7faf79df692 100644 (file)
@@ -1,3 +1,8 @@
+2001-07-04  Gerd Moellmann  <gerd@gnu.org>
+
+       * xterm.c (x_produce_glyphs): Don't convert multibyte characters
+       to unibyte characters in unibyte buffers.
+
 2001-07-03  Gerd Moellmann  <gerd@gnu.org>
 
        * eval.c (specbind): If SYMBOL has a frame-local binding, record
index eeae9714204923a00b5b6906165806972eb31a61..5991d3e1223da6ecb99606c03f56cb882ed6387f 100644 (file)
@@ -1817,8 +1817,7 @@ x_produce_glyphs (it)
         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 @@ x_produce_glyphs (it)
          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);
            }