# HG changeset patch # User Eli Zaretskii # Date 959520182 0 # Node ID b7059c9f98ac5a666d97abe35d1e3ee79c8b784c # Parent 8f30b82a176c6ea2370eeb4455882b9ce9ec7db0 (produce_glyphs): Don't treat eight-bit-* charsets as multibyte. From Kenichi Handa. diff -r 8f30b82a176c -r b7059c9f98ac src/term.c --- a/src/term.c Sun May 28 10:54:01 2000 +0000 +++ b/src/term.c Sun May 28 13:23:02 2000 +0000 @@ -1856,6 +1856,17 @@ 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