Mercurial > emacs
changeset 70783:216c04e10ca3
(CODING_REQUIRE_ENCODING): Elaborate the comment.
author | Eli Zaretskii <eliz@gnu.org> |
---|---|
date | Sat, 20 May 2006 19:04:35 +0000 |
parents | 9fb34710a5dd |
children | c964932a0438 |
files | src/coding.h |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
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)