# HG changeset patch # User Eli Zaretskii # Date 1148151875 0 # Node ID 216c04e10ca306caf461d143d95911f6d3b97135 # Parent 9fb34710a5ddb48ca83394e1319ecf945b6dff9d (CODING_REQUIRE_ENCODING): Elaborate the comment. diff -r 9fb34710a5dd -r 216c04e10ca3 src/coding.h --- 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)