]> git.eshelyaron.com Git - emacs.git/commitdiff
(IT_write_glyphs): Convert unibyte characters to
authorEli Zaretskii <eliz@gnu.org>
Thu, 31 Dec 1998 16:32:53 +0000 (16:32 +0000)
committerEli Zaretskii <eliz@gnu.org>
Thu, 31 Dec 1998 16:32:53 +0000 (16:32 +0000)
multibyte in unibyte buffers only.

src/msdos.c

index 4f241cec4ef18e2cb8b00050214ca370c5fd47f7..9b70fbea74e888a6bee644ba64427514bed12a4e 100644 (file)
@@ -726,7 +726,11 @@ IT_write_glyphs (GLYPH *str, int str_len)
          /* 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))))