From fa69504049096fbaedcf498f0c1e2967641eeba9 Mon Sep 17 00:00:00 2001 From: "Steven R. Loomis" Date: Wed, 1 Mar 2000 00:32:56 +0000 Subject: [PATCH] ICU-294 unicode output from rbdump X-SVN-Rev: 868 --- icu4c/source/tools/rbdump/uprint.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/icu4c/source/tools/rbdump/uprint.c b/icu4c/source/tools/rbdump/uprint.c index 4a2bf17321..9214ba8095 100644 --- a/icu4c/source/tools/rbdump/uprint.c +++ b/icu4c/source/tools/rbdump/uprint.c @@ -51,7 +51,12 @@ uprint(const UChar *s, /* if we failed, clean up and exit */ if(U_FAILURE(*status)) goto finish; + + /* output unicode characters properly */ + ucnv_setFromUCallBack(converter, UCNV_FROM_U_CALLBACK_ESCAPE, status); + if(U_FAILURE(*status)) goto finish; + /* perform the conversion */ do { /* reset the error code */