aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenichi Handa2002-08-15 02:29:00 +0000
committerKenichi Handa2002-08-15 02:29:00 +0000
commit9ae965fd9b9c7a9482c9c2205c43d4a4cf9e0812 (patch)
treec73d412053c91ae40068ccfd68a264af682e443d /src
parentd1a0458808666e8c0ee3a0e78490f24138d880b2 (diff)
downloademacs-9ae965fd9b9c7a9482c9c2205c43d4a4cf9e0812.tar.gz
emacs-9ae965fd9b9c7a9482c9c2205c43d4a4cf9e0812.zip
(x_produce_glyphs): Use ASCII_CHAR_P, not
SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when it->multibyte_p is zero.
Diffstat (limited to 'src')
-rw-r--r--src/w32term.c20
1 files changed, 6 insertions, 14 deletions
diff --git a/src/w32term.c b/src/w32term.c
index c22fb1775a6..222bc96a35b 100644
--- a/src/w32term.c
+++ b/src/w32term.c
@@ -2040,22 +2040,14 @@ x_produce_glyphs (it)
2040 /* Maybe translate single-byte characters to multibyte, or the 2040 /* Maybe translate single-byte characters to multibyte, or the
2041 other way. */ 2041 other way. */
2042 it->char_to_display = it->c; 2042 it->char_to_display = it->c;
2043 if (!ASCII_BYTE_P (it->c)) 2043 if (!ASCII_CHAR_P (it->c))
2044 { 2044 {
2045 if (unibyte_display_via_language_environment 2045 if (SINGLE_BYTE_CHAR_P (it->c)
2046 && SINGLE_BYTE_CHAR_P (it->c) 2046 && unibyte_display_via_language_environment)
2047 && (it->c >= 0240 2047 it->char_to_display = unibyte_char_to_multibyte (it->c);
2048 || !NILP (Vnonascii_translation_table))) 2048 if (! SINGLE_BYTE_CHAR_P (it->c))
2049 {
2050 it->char_to_display = unibyte_char_to_multibyte (it->c);
2051 it->multibyte_p = 1;
2052 it->face_id = FACE_FOR_CHAR (it->f, face, it->char_to_display);
2053 face = FACE_FROM_ID (it->f, it->face_id);
2054 }
2055 else if (!SINGLE_BYTE_CHAR_P (it->c)
2056 && !it->multibyte_p)
2057 { 2049 {
2058 it->multibyte_p = 1; 2050 it->multibyte_p = 1;
2059 it->face_id = FACE_FOR_CHAR (it->f, face, it->char_to_display); 2051 it->face_id = FACE_FOR_CHAR (it->f, face, it->char_to_display);
2060 face = FACE_FROM_ID (it->f, it->face_id); 2052 face = FACE_FROM_ID (it->f, it->face_id);
2061 } 2053 }