projects
/
chise
/
xemacs-chise.git-
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8a94199
)
(char_encode_big5): Support entity-reference.
author
tomo
<tomo>
Sun, 11 Aug 2002 07:24:08 +0000
(07:24 +0000)
committer
tomo
<tomo>
Sun, 11 Aug 2002 07:24:08 +0000
(07:24 +0000)
src/text-coding.c
patch
|
blob
|
history
diff --git
a/src/text-coding.c
b/src/text-coding.c
index
f7cbe9e
..
002de1f
100644
(file)
--- 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