From: tomo Date: Sun, 11 Aug 2002 07:24:08 +0000 (+0000) Subject: (char_encode_big5): Support entity-reference. X-Git-Tag: r21-2-44-utf-2000-0_19-nc4-b5-1-2~10 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=98f1518a09e923a4f8b14b6a637cc283f02719bd;p=chise%2Fxemacs-chise.git.1 (char_encode_big5): Support entity-reference. --- 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