From 72a06de4e9378aca4f09f2297e3e8b13ba9188d1 Mon Sep 17 00:00:00 2001 From: Yves Arrouye Date: Tue, 8 Jan 2002 03:23:53 +0000 Subject: [PATCH] ICU-1220 oops. use UCNV_ESCAPE_XML_HEX for escape-xml-hex! X-SVN-Rev: 7407 --- icu4c/source/extra/uconv/uconv.1.in | 1 + icu4c/source/extra/uconv/uconv.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/icu4c/source/extra/uconv/uconv.1.in b/icu4c/source/extra/uconv/uconv.1.in index 4ebdf0f65d..a5b03a04b5 100644 --- a/icu4c/source/extra/uconv/uconv.1.in +++ b/icu4c/source/extra/uconv/uconv.1.in @@ -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 , diff --git a/icu4c/source/extra/uconv/uconv.cpp b/icu4c/source/extra/uconv/uconv.cpp index 3313487cf6..5e799d6939 100644 --- a/icu4c/source/extra/uconv/uconv.cpp +++ b/icu4c/source/extra/uconv/uconv.cpp @@ -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) {