]> git.eshelyaron.com Git - emacs.git/commitdiff
(IT_write_glyphs): Don't use CODING_REQUIRE_ENCODING
authorEli Zaretskii <eliz@gnu.org>
Tue, 13 Jun 2000 13:04:19 +0000 (13:04 +0000)
committerEli Zaretskii <eliz@gnu.org>
Tue, 13 Jun 2000 13:04:19 +0000 (13:04 +0000)
macro, instead AND with CODING_REQUIRE_ENCODING_MASK.

src/msdos.c

index d15af6bc633ad8e0c69ee14c792d170e91644850..7545cd8bc6cef44d1743b1ad086c24f0853dcd75 100644 (file)
@@ -890,9 +890,13 @@ IT_write_glyphs (struct glyph *str, int str_len)
   register int tlen = GLYPH_TABLE_LENGTH;
   register Lisp_Object *tbase = GLYPH_TABLE_BASE;
 
-  struct coding_system *coding = (CODING_REQUIRE_ENCODING (&terminal_coding)
-                                 ? &terminal_coding
-                                 : &safe_terminal_coding);
+  /* If terminal_coding does any conversion, use it, otherwise use
+     safe_terminal_coding.  We can't use CODING_REQUIRE_ENCODING here
+     because it always returns 1 if terminal_coding.src_multibyte is 1.  */
+  struct coding_system *coding =
+    (terminal_coding.common_flags & CODING_REQUIRE_ENCODING_MASK
+     ? &terminal_coding
+     : &safe_terminal_coding);
   struct frame *sf;
 
   /* Do we need to consider conversion of unibyte characters to