ICU-1220 oops. use UCNV_ESCAPE_XML_HEX for escape-xml-hex!

X-SVN-Rev: 7407
This commit is contained in:
Yves Arrouye 2002-01-08 03:23:53 +00:00
parent 550c0e205e
commit 72a06de4e9
2 changed files with 2 additions and 1 deletions

View File

@ -55,6 +55,7 @@ Unicode, and then from Unicode to the destination encoding).
It is possible to specify callbacks that are used to handle invalid
characters in the input, or characters that cannot be transcoded to
the destination encoding.
.PP
.B uconv
can also run the transcoding through a specified
.IR transliterator ,

View File

@ -94,7 +94,7 @@ static struct callback_ent {
{ "escape-c", UCNV_FROM_U_CALLBACK_ESCAPE, UCNV_ESCAPE_C, UCNV_TO_U_CALLBACK_ESCAPE, UCNV_ESCAPE_C },
{ "escape-xml", UCNV_FROM_U_CALLBACK_ESCAPE, UCNV_ESCAPE_XML_DEC, UCNV_TO_U_CALLBACK_ESCAPE, UCNV_ESCAPE_XML_DEC },
{ "escape-xml-dec", UCNV_FROM_U_CALLBACK_ESCAPE, UCNV_ESCAPE_XML_DEC, UCNV_TO_U_CALLBACK_ESCAPE, UCNV_ESCAPE_XML_DEC },
{ "escape-xml-hex", UCNV_FROM_U_CALLBACK_ESCAPE, UCNV_ESCAPE_XML_DEC, UCNV_TO_U_CALLBACK_ESCAPE, UCNV_ESCAPE_XML_DEC }
{ "escape-xml-hex", UCNV_FROM_U_CALLBACK_ESCAPE, UCNV_ESCAPE_XML_HEX, UCNV_TO_U_CALLBACK_ESCAPE, UCNV_ESCAPE_XML_HEX }
};
static const struct callback_ent *findCallback(const char *name) {