changeset 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 d1d08f461c9c
children 98ac51fd1935
files src/msdos.c
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/msdos.c	Thu Dec 31 14:40:03 1998 +0000
+++ b/src/msdos.c	Thu Dec 31 16:32:53 1998 +0000
@@ -726,7 +726,11 @@
 	  /* Convert the character code to multibyte, if they
 	     requested display via language environment.  */
 	  ch = FAST_GLYPH_CHAR (g);
-	  if (unibyte_display_via_language_environment
+	  /* We only want to convert unibyte characters to multibyte
+	     in unibyte buffers!  Otherwise, the 8-bit code might come
+	     from the display table set up to display foreign characters.  */
+	  if (NILP (current_buffer->enable_multibyte_characters)
+	      && unibyte_display_via_language_environment
 	      && SINGLE_BYTE_CHAR_P (ch)
 	      && (ch >= 0240
 		  || (ch >= 0200 && !NILP (Vnonascii_translation_table))))