From: Eli Zaretskii Date: Sun, 28 May 2000 13:23:02 +0000 (+0000) Subject: (produce_glyphs): Don't treat eight-bit-* charsets as multibyte. X-Git-Tag: emacs-pretest-21.0.90~3660 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=add448900881f981e2b803e0642770a70b9fe85a;p=emacs.git (produce_glyphs): Don't treat eight-bit-* charsets as multibyte. From Kenichi Handa. --- diff --git a/src/term.c b/src/term.c index 794c92ba011..df3ea60e997 100644 --- a/src/term.c +++ b/src/term.c @@ -1856,6 +1856,17 @@ produce_glyphs (it) it->pixel_width = nspaces; it->nglyphs = nspaces; } + else if (SINGLE_BYTE_CHAR_P (it->c)) + { + /* Comming here means that it->c is from display table, thus we + must send the code as is to the terminal. Although there's + no way to know how many columns it occupies on a screen, it + is a good assumption that a single byte code has 1-column + width. */ + it->pixel_width = it->nglyphs = 1; + if (it->glyph_row) + append_glyph (it); + } else { /* A multi-byte character. The display width is fixed for all