2040 |
/* Maybe translate single-byte characters to multibyte, or the |
/* Maybe translate single-byte characters to multibyte, or the |
2041 |
other way. */ |
other way. */ |
2042 |
it->char_to_display = it->c; |
it->char_to_display = it->c; |
2043 |
if (!ASCII_BYTE_P (it->c)) |
if (!ASCII_CHAR_P (it->c)) |
2044 |
{ |
{ |
2045 |
if (unibyte_display_via_language_environment |
if (SINGLE_BYTE_CHAR_P (it->c) |
2046 |
&& SINGLE_BYTE_CHAR_P (it->c) |
&& unibyte_display_via_language_environment) |
2047 |
&& (it->c >= 0240 |
it->char_to_display = unibyte_char_to_multibyte (it->c); |
2048 |
|| !NILP (Vnonascii_translation_table))) |
if (! SINGLE_BYTE_CHAR_P (it->c)) |
|
{ |
|
|
it->char_to_display = unibyte_char_to_multibyte (it->c); |
|
|
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); |
|
|
} |
|
|
else if (!SINGLE_BYTE_CHAR_P (it->c) |
|
|
&& !it->multibyte_p) |
|
2049 |
{ |
{ |
2050 |
it->multibyte_p = 1; |
it->multibyte_p = 1; |
2051 |
it->face_id = FACE_FOR_CHAR (it->f, face, it->char_to_display); |
it->face_id = FACE_FOR_CHAR (it->f, face, it->char_to_display); |
2052 |
face = FACE_FROM_ID (it->f, it->face_id); |
face = FACE_FROM_ID (it->f, it->face_id); |
2053 |
} |
} |