# HG changeset patch # User Kenichi Handa # Date 903144494 0 # Node ID 720d197458cf2e880f35d32a4423dd49988f90bd # Parent 2dc474eaa69352f540e0618a12719c0282ff7fb3 (dumpglyphs): If x_display_unibyte_char_with_fontset is nonzero, convert a unibyte 8-bit char to a multibyte char and display it by a font listed in the current fontset. diff -r 2dc474eaa693 -r 720d197458cf src/xterm.c --- a/src/xterm.c Sat Aug 15 01:28:14 1998 +0000 +++ b/src/xterm.c Sat Aug 15 01:28:14 1998 +0000 @@ -580,6 +580,10 @@ GLYPH_FOLLOW_ALIASES (tbase, tlen, g); cf = (cmpcharp ? cmpcharp->face_work : FAST_GLYPH_FACE (g)); ch = FAST_GLYPH_CHAR (g); + if (x_display_unibyte_char_with_fontset + && SINGLE_BYTE_CHAR_P (ch) + && ch >= 160) + ch = unibyte_char_to_multibyte (ch); if (gidx == 0) XSETFASTINT (first_ch, ch); charset = CHAR_CHARSET (ch); if (charset == CHARSET_COMPOSITION) @@ -617,6 +621,10 @@ g = *gp; GLYPH_FOLLOW_ALIASES (tbase, tlen, g); ch = FAST_GLYPH_CHAR (g); + if (x_display_unibyte_char_with_fontset + && SINGLE_BYTE_CHAR_P (ch) + && ch >= 160) + ch = unibyte_char_to_multibyte (ch); SPLIT_CHAR (ch, this_charset, c1, c2); if (this_charset != charset || (cmpcharp == NULL && FAST_GLYPH_FACE (g) != cf))