Mercurial > emacs
comparison src/msdos.c @ 23971:35ba3fe1ad69
(IT_write_glyphs): Convert unibyte characters to
multibyte in unibyte buffers only.
author | Eli Zaretskii <eliz@gnu.org> |
---|---|
date | Thu, 31 Dec 1998 16:32:53 +0000 |
parents | f2d6df96a3c7 |
children | fce0e760c4ab |
comparison
equal
deleted
inserted
replaced
23970:d1d08f461c9c | 23971:35ba3fe1ad69 |
---|---|
724 else | 724 else |
725 { | 725 { |
726 /* Convert the character code to multibyte, if they | 726 /* Convert the character code to multibyte, if they |
727 requested display via language environment. */ | 727 requested display via language environment. */ |
728 ch = FAST_GLYPH_CHAR (g); | 728 ch = FAST_GLYPH_CHAR (g); |
729 if (unibyte_display_via_language_environment | 729 /* We only want to convert unibyte characters to multibyte |
730 in unibyte buffers! Otherwise, the 8-bit code might come | |
731 from the display table set up to display foreign characters. */ | |
732 if (NILP (current_buffer->enable_multibyte_characters) | |
733 && unibyte_display_via_language_environment | |
730 && SINGLE_BYTE_CHAR_P (ch) | 734 && SINGLE_BYTE_CHAR_P (ch) |
731 && (ch >= 0240 | 735 && (ch >= 0240 |
732 || (ch >= 0200 && !NILP (Vnonascii_translation_table)))) | 736 || (ch >= 0200 && !NILP (Vnonascii_translation_table)))) |
733 ch = unibyte_char_to_multibyte (ch); | 737 ch = unibyte_char_to_multibyte (ch); |
734 | 738 |