]> git.eshelyaron.com Git - emacs.git/commitdiff
(CODING_REQUIRE_ENCODING): Comment sync with HEAD.
authorKenichi Handa <handa@m17n.org>
Thu, 8 Jun 2006 06:48:23 +0000 (06:48 +0000)
committerKenichi Handa <handa@m17n.org>
Thu, 8 Jun 2006 06:48:23 +0000 (06:48 +0000)
src/coding.h

index 41f4aab509c7a48f64ebfadf10ffc12adefefcdd..93375d2c2eb209e4502b9856044c7e09293564c9 100644 (file)
@@ -489,7 +489,10 @@ struct coding_system
 
 
 /* Return 1 if the coding context 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    \