From 98f1518a09e923a4f8b14b6a637cc283f02719bd Mon Sep 17 00:00:00 2001 From: tomo Date: Sun, 11 Aug 2002 07:24:08 +0000 Subject: [PATCH] (char_encode_big5): Support entity-reference. --- src/text-coding.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/text-coding.c b/src/text-coding.c index f7cbe9e..002de1f 100644 --- a/src/text-coding.c +++ b/src/text-coding.c @@ -3985,6 +3985,13 @@ char_encode_big5 (struct encoding_stream *str, Emchar ch, Dynarr_add (dst, b1); Dynarr_add (dst, b2); } + else if (CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys)) + { + char buf[18]; + + char_encode_as_entity_reference (ch, buf); + Dynarr_add_many (dst, buf, strlen (buf)); + } else Dynarr_add (dst, '?'); #else -- 1.7.10.4