diff src/coding.h @ 70783:216c04e10ca3

(CODING_REQUIRE_ENCODING): Elaborate the comment.
author Eli Zaretskii <eliz@gnu.org>
date Sat, 20 May 2006 19:04:35 +0000
parents 85b353760b1c
children 6ee41fdd69ff c44562301a11
line wrap: on
line diff
--- a/src/coding.h	Sat May 20 18:56:22 2006 +0000
+++ b/src/coding.h	Sat May 20 19:04:35 2006 +0000
@@ -462,7 +462,10 @@
    || (coding)->common_flags & CODING_REQUIRE_DECODING_MASK)
 
 /* Return 1 if the coding system CODING requires code conversion on
-   encoding.  */
+   encoding.
+   The non-multibyte part of the condition is to support encoding of
+   unibyte strings/buffers generated by string-as-unibyte or
+   (set-buffer-multibyte nil) from multibyte strings/buffers.  */
 #define CODING_REQUIRE_ENCODING(coding)	\
   ((coding)->src_multibyte		\
    || (coding)->common_flags & CODING_REQUIRE_ENCODING_MASK)