From 8cd78a419aa6ca4b5e99e538ce10727318e4b679 Mon Sep 17 00:00:00 2001 From: George Rhoten Date: Fri, 9 May 2003 22:52:03 +0000 Subject: [PATCH] ICU-2699 Fix a compiler warning X-SVN-Rev: 11876 --- icu4c/source/common/ucnvmbcs.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/icu4c/source/common/ucnvmbcs.c b/icu4c/source/common/ucnvmbcs.c index 0ae0837cb16..0c283eccb67 100644 --- a/icu4c/source/common/ucnvmbcs.c +++ b/icu4c/source/common/ucnvmbcs.c @@ -814,9 +814,12 @@ _MBCSOpen(UConverter *cnv, } } - if(uprv_strstr(name, "gb18030")!=NULL || uprv_strstr(name, "GB18030")!=NULL) { - /* set a flag for GB 18030 mode, which changes the callback behavior */ - cnv->options|=_MBCS_OPTION_GB18030; + + if(uprv_strstr(name, "18030")!=NULL) { + if(uprv_strstr(name, "gb18030")!=NULL || uprv_strstr(name, "GB18030")!=NULL) { + /* set a flag for GB 18030 mode, which changes the callback behavior */ + cnv->options|=_MBCS_OPTION_GB18030; + } } _MBCSReset(cnv, UCNV_RESET_BOTH);